Manage ipmi_power munin plugin on 14.04 machines
authorTom Hughes <tom@compton.nu>
Tue, 15 Jul 2014 09:18:09 +0000 (10:18 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Jul 2014 09:18:09 +0000 (10:18 +0100)
cookbooks/munin/recipes/default.rb

index 0bcccbb93c4f248d88ae0994cee9bd51c2665ce5..316f738f5a8764d13e0890d6378e7efd1fc3c881 100644 (file)
@@ -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"