]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/attributes/default.rb
39b272b05d4f9c4da6322931ddbe90e477e41616
[chef.git] / cookbooks / hardware / attributes / default.rb
1 if node[:dmi] and node[:dmi][:system]
2   case dmi.system.manufacturer
3   when "HP"
4     default[:apt][:sources] |= [ "management-component-pack" ]
5   end
6 end
7
8 if node[:kernel] and node[:kernel][:modules]
9   raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
10
11   unless raidmods.empty?
12     default[:apt][:sources] |= [ "hwraid" ]
13   end
14 end