From: Tom Hughes Date: Tue, 15 Jul 2014 09:18:09 +0000 (+0100) Subject: Manage ipmi_power munin plugin on 14.04 machines X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0f070772483480ece384bf3f3127b6c562298f5a Manage ipmi_power munin plugin on 14.04 machines --- diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 0bcccbb93..316f738f5 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -205,6 +205,11 @@ if Dir.glob("/dev/ipmi*").empty? munin_plugin "ipmi_temp" do action :delete end + + munin_plugin "ipmi_power" do + action :delete + only_if { node[:lsb][:release].to_f >= 14.04 } + end else munin_plugin "ipmi_fans" do target "ipmi_" @@ -213,6 +218,11 @@ else munin_plugin "ipmi_temp" do target "ipmi_" end + + munin_plugin "ipmi_power" do + target "ipmi_" + only_if { node[:lsb][:release].to_f >= 14.04 } + end end munin_plugin "irqstats"