P.S : Iam a beginner
Problem : Write a recipe that will install apachee2 server in the Node host01 and add a home page. The home page index.html should be placed within the files directory in cookbook.
this are the steps done by me
- generate cookbook apache2
2.Edit the default file with contents.
package " apache2" do
action :install
end
service "apache2" do
action [:enable , :start]
end
cookbook_file "/var/www/html/index.html" do
source "index.html"
action :create
end
however executing this , it is getting executed succesfully but the that tutorial is not going to next page.Please let me know if any other steps to be done as per the problem statement