cookbook new_resource.conf_cookbook
template new_resource.conf
variables new_resource.conf_variables
+ restart_munin false
end
end
end
if new_resource.conf # ~FC023
munin_plugin_conf new_resource.name do
action :delete
+ restart_munin false
end
end
end
end
def target_path
- case
- when ::File.exist?(target)
+ if ::File.exist?(target)
target
- when ::File.exist?("/usr/local/share/munin/plugins/#{target}")
+ elsif ::File.exist?("/usr/local/share/munin/plugins/#{target}")
"/usr/local/share/munin/plugins/#{target}"
- when ::File.exist?("/usr/share/munin/plugins/#{target}")
+ elsif ::File.exist?("/usr/share/munin/plugins/#{target}")
"/usr/share/munin/plugins/#{target}"
end
end