]> git.openstreetmap.org Git - chef.git/commitdiff
Install lm-sensors when munin is doing sensor monitoring
authorTom Hughes <tom@compton.nu>
Fri, 31 May 2013 19:05:56 +0000 (20:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 31 May 2013 19:05:56 +0000 (20:05 +0100)
cookbooks/munin/recipes/default.rb

index c3e43cdd8eed5f4ed6b9a573dafc5c6cebe7ea7e..2626aca4a5ca8b522ac025883f6f4fb6b1332bb8 100644 (file)
@@ -243,6 +243,8 @@ munin_plugin "processes"
 munin_plugin "proc_pri"
 
 Dir.glob("/sys/class/hwmon/hwmon*").each do |hwmon|
+  package "lm-sensors"
+
   hwmon = "#{hwmon}/device" unless File.exists?("#{hwmon}/name")
 
   if Dir.glob("#{hwmon}/fan*_input").empty?