]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/providers/plugin_conf.rb
Use nice labels in layer switcher
[chef.git] / cookbooks / munin / providers / plugin_conf.rb
index 7a87c88003e1bae204284b4a6310b9ebcb610afc..4263165cdaa7e5adc4f78c2eac39469ce5e2d3fa 100644 (file)
@@ -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