Slide 57
Slide 57 text
cookbooks/nginx/recipes/default.rb
package "nginx"
service "nginx" do
supports :status => true,
:restart => true,
:reload => true
action [:enable, :start]
end
template "/etc/nginx/nginx.conf" do
source "nginx.conf.erb"
notifies :reload, "service[nginx]"
end