X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e61233b42038a7b4cbb793b19c49a0109c7c9c09..b7a7d93d6d9850c5ace31735c6a773e614f7d017:/cookbooks/munin/recipes/default.rb diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 41d722e0c..3a5be0d61 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -50,7 +50,7 @@ template "/etc/munin/munin-node.conf" do 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 @@ -73,7 +73,7 @@ remote_directory "/etc/munin/plugin-conf.d" 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? @@ -116,7 +116,7 @@ else 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