X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/4787523adf3d90b98c0d23d405f7609fb07829fc..52cbd01e53b20fcb0ef5226621c825807aaa9aaa:/cookbooks/munin/providers/plugin_conf.rb diff --git a/cookbooks/munin/providers/plugin_conf.rb b/cookbooks/munin/providers/plugin_conf.rb index 7a87c8800..4263165cd 100644 --- a/cookbooks/munin/providers/plugin_conf.rb +++ b/cookbooks/munin/providers/plugin_conf.rb @@ -21,26 +21,23 @@ def whyrun_supported? true end +use_inline_resources + action :create do - t = template config_file do + template config_file do cookbook new_resource.cookbook source new_resource.template owner "root" group "root" mode 0644 variables new_resource.variables.merge(:name => new_resource.name) - notifies :restart, "service[munin-node]" end - - new_resource.updated_by_last_action(t.updated_by_last_action?) end action :delete do - f = file config_file do + file config_file do action :delete end - - new_resource.updated_by_last_action(f.updated_by_last_action?) end def config_file