X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0f59f592a5f0be9a32d2e49cfdae96910ec2df3f..35f220a555dee107786152d3daff4d66d1655e56:/cookbooks/nginx/resources/site.rb 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