]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/attributes/default.rb
Install ipmitool on machines with the ipmi_si module loaded
[chef.git] / cookbooks / hardware / attributes / default.rb
index 73940d9b7d29cda002eb0e2837bac5b4427efe02..904b51e3653726ce2c04a7543a7679889b11282f 100644 (file)
@@ -10,7 +10,9 @@ if node[:dmi] and node[:dmi][:system]
 end
 
 if node[:kernel] and node[:kernel][:modules]
-  if node[:kernel][:modules].include?("mpt2sas")
+  raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
+
+  unless raidmods.empty?
     default[:apt][:sources] |= [ "hwraid" ]
   end
 end