X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e54da9eaec238be8640da3ebc26677969a316db1..e050b6df164ed5daf4c90115d65cd1700858cc1c:/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