]> 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 2d077509f5cae0c568890668b84a3b8fa8c3c6ab..cded39a47881394c141212fe36861af07d8be03a 100644 (file)
@@ -22,6 +22,10 @@ default_action [:install, :enable]
 
 attribute :name, :kind_of => String, :name_attribute => true
 attribute :package, :kind_of => String
-attribute :version, :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