X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d3ecbe3df5a6b604319ae2864e36e24e5f9e12d0..b18a26a57c6ee708128613c6f0427403d85cfa0f:/cookbooks/apache/resources/module.rb diff --git a/cookbooks/apache/resources/module.rb b/cookbooks/apache/resources/module.rb index 2d077509f..cded39a47 100644 --- a/cookbooks/apache/resources/module.rb +++ b/cookbooks/apache/resources/module.rb @@ -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