]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/resources/site.rb
Rename MaxRequestsPerChild to MaxConnectionsPerChild
[chef.git] / cookbooks / apache / resources / site.rb
index d6735ba8fa7dca06a4eb12e2ab80d01590fba06c..0e6a2fedffdc7ef31588a5f4623d8f3514e8a697 100644 (file)
@@ -25,3 +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 :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true
+
+def after_created
+  notifies :reload, "service[apache2]" if reload_apache
+end