Write a recipe to create a
file which should be owned by group called “root”, user “ec2-user” and permission executable.
user 'ec2-user' do
password 'chef#123'
end
file 'assisgnmentday1.txt' do
content "this is text file."
mode '0755'
owner 'ec2-user'
group 'root'
end
Write a chef recipe to install git.
package 'git' do
action :install
end
git 'gitclone' do
remote 'origin'
repository 'https://github.com/scmgalaxy/helloworld-java-maven'
user 'root'
action: sync
end
Top comments (0)