X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..ab47927c016597f8602b81dcdc168ad5c335389d:/cookbooks/munin/resources/plugin.rb diff --git a/cookbooks/munin/resources/plugin.rb b/cookbooks/munin/resources/plugin.rb index 01bf9167e..bc58bf975 100644 --- a/cookbooks/munin/resources/plugin.rb +++ b/cookbooks/munin/resources/plugin.rb @@ -19,7 +19,7 @@ default_action :create -property :plugin, :kind_of => String, :name_attribute => true +property :plugin, :kind_of => String, :name_property => true property :target, :kind_of => String property :conf, :kind_of => String property :conf_cookbook, :kind_of => String @@ -37,7 +37,7 @@ action :create do to target_path end - if new_resource.conf # ~FC023 + if new_resource.conf munin_plugin_conf new_resource.plugin do cookbook new_resource.conf_cookbook template new_resource.conf @@ -52,7 +52,7 @@ action :delete do action :delete end - if new_resource.conf # ~FC023 + if new_resource.conf munin_plugin_conf new_resource.plugin do action :delete restart_munin false @@ -81,5 +81,5 @@ action_class do end def after_created - notifies :restart, "service[munin-node]" if restart_munin && node[:recipes].include?("munin") + notifies :restart, "service[munin-node]" if restart_munin end