]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/attributes/default.rb
Initial work to manage lm_sensors
[chef.git] / cookbooks / hardware / attributes / default.rb
index 39b272b05d4f9c4da6322931ddbe90e477e41616..473ceb1811249ac6922131b19aeab390ddd18ca0 100644 (file)
@@ -1,7 +1,14 @@
+default[:hardware][:sensors] = {}
+
 if node[:dmi] and node[:dmi][:system]
   case dmi.system.manufacturer
   when "HP"
     default[:apt][:sources] |= [ "management-component-pack" ]
+
+    case dmi.system.product_name
+      when "ProLiant DL360 G6", "ProLiant DL360 G7"
+        default[:hardware][:sensors][:power][:power1] = { :ignore => true }
+    end
   end
 end