]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/attributes/default.rb
Add OOB MAC addresses for clifford and ascalon
[chef.git] / cookbooks / hardware / attributes / default.rb
1 if node[:dmi] and node[:dmi][:system]
2   case dmi.system.manufacturer
3   when "HP"
4     if node[:lsb][:release].to_f <= 11.10
5       default[:apt][:sources] |= [ "proliant-support-pack" ]
6     else
7       default[:apt][:sources] |= [ "management-component-pack" ]
8     end
9   end
10 end
11
12 if node[:kernel] and node[:kernel][:modules]
13   raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
14
15   unless raidmods.empty?
16     default[:apt][:sources] |= [ "hwraid" ]
17   end
18 end