group "root"
mode 0644
variables :servers => servers
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
remote_directory "/usr/local/share/munin/plugins" do
files_group "root"
files_mode 0644
purge false
- notifies :restart, resources(:service => "munin-node")
+ notifies :restart, "service[munin-node]"
end
if Dir.glob("/proc/acpi/thermal_zone/*/temperature").empty?
end
end
-if %x{sysctl -n net.ipv4.ip_forward}.chomp == "1"
+if File.read("/proc/sys/net/ipv4/ip_forward").chomp == "1"
munin_plugin "fw_packets"
else
munin_plugin "fw_packets" do