X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a60f8a522d3ab47b49ba10b4c5cb756e5785ef58..28326173066466bb20f54bad702b2885b64f925c:/cookbooks/munin/resources/plugin.rb diff --git a/cookbooks/munin/resources/plugin.rb b/cookbooks/munin/resources/plugin.rb index dede3cb53..10c149436 100644 --- a/cookbooks/munin/resources/plugin.rb +++ b/cookbooks/munin/resources/plugin.rb @@ -17,9 +17,11 @@ # limitations under the License. # +unified_mode true + 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 @@ -81,5 +83,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