]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/resources/conf.rb
Use inline compile mode for apache LWRPs
[chef.git] / cookbooks / apache / resources / conf.rb
index e17d25bbba4e767d37039d49c80de64b2aa3dab1..a6487c98c4b2b8a02e0d9aed28e416c65eabb1be 100644 (file)
@@ -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