]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/resources/module.rb
Use inline compile mode for apache LWRPs
[chef.git] / cookbooks / apache / resources / module.rb
index f2d95551ec486a42d7709d2cbf3aa4f4b95a5f93..cded39a47881394c141212fe36861af07d8be03a 100644 (file)
@@ -24,3 +24,8 @@ attribute :name, :kind_of => String, :name_attribute => true
 attribute :package, :kind_of => String
 attribute :conf, :kind_of => String
 attribute :variables, :kind_of => Hash, :default => {}
+attribute :restart_apache, :kind_of => [TrueClass, FalseClass], :default => true
+
+def after_created
+  notifies :restart, "service[apache2]" if restart_apache
+end