X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0f59f592a5f0be9a32d2e49cfdae96910ec2df3f..911c341fc1a9c341fe1aadfcdf6ce32864180ae7:/cookbooks/nginx/resources/site.rb?ds=sidebyside diff --git a/cookbooks/nginx/resources/site.rb b/cookbooks/nginx/resources/site.rb index bdea43487..e48e7b80d 100644 --- a/cookbooks/nginx/resources/site.rb +++ b/cookbooks/nginx/resources/site.rb @@ -25,7 +25,8 @@ attribute :directory, :kind_of => String attribute :cookbook, :kind_of => String attribute :template, :kind_of => String, :required => true attribute :variables, :kind_of => Hash, :default => {} +attribute :restart_nginx, :kind_of => [TrueClass, FalseClass], :default => true def after_created - notifies :restart, "service[nginx]" + notifies :restart, "service[nginx]" if restart_nginx end