X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a615c8af6b389f613acf1c80a7b56da48d780cc0..51096343cee85550cd197da1f8354f8407506af5:/cookbooks/apache/resources/conf.rb diff --git a/cookbooks/apache/resources/conf.rb b/cookbooks/apache/resources/conf.rb index e17d25bbb..a6487c98c 100644 --- a/cookbooks/apache/resources/conf.rb +++ b/cookbooks/apache/resources/conf.rb @@ -24,3 +24,8 @@ attribute :name, :kind_of => String, :name_attribute => true attribute :cookbook, :kind_of => String attribute :template, :kind_of => String, :required => true attribute :variables, :kind_of => Hash, :default => {} +attribute :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true + +def after_created + notifies :reload, "service[apache2]" if reload_apache +end