1 if node[:dmi] and node[:dmi][:system]
2 case dmi.system.manufacturer
4 default[:apt][:sources] |= [ "management-component-pack" ]
8 if node[:kernel] and node[:kernel][:modules]
9 raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
11 unless raidmods.empty?
12 default[:apt][:sources] |= [ "hwraid" ]