]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/recipes/default.rb
Install lm-sensors when munin is doing sensor monitoring
[chef.git] / 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?