1 default[:hardware][:modules] = %w(loop lp rtc)
 
   2 default[:hardware][:grub][:cmdline] = %w(nomodeset)
 
   3 default[:hardware][:sensors] = {}
 
   5 if node[:dmi] && node[:dmi][:system]
 
   6   case dmi.system.manufacturer
 
   8     default[:apt][:sources] |= ["management-component-pack"]
 
  10     case dmi.system.product_name
 
  11     when "ProLiant DL360 G6", "ProLiant DL360 G7"
 
  12       default[:hardware][:sensors][:"power_meter-*"][:power][:power1] = { :ignore => true }
 
  17 if Chef::Util.compare_versions(node[:kernel][:release], [3, 3]) < 0
 
  18   default[:hardware][:modules] |= ["microcode"]
 
  20   if node[:cpu][:"0"][:vendor_id] == "GenuineIntel"
 
  21     default[:hardware][:modules] |= ["coretemp"]
 
  25 if node[:kernel] && node[:kernel][:modules]
 
  26   raidmods = node[:kernel][:modules].keys & %w(cciss hpsa mptsas mpt2sas mpt3sas megaraid_mm megaraid_sas aacraid)
 
  28   unless raidmods.empty?
 
  29     default[:apt][:sources] |= ["hwraid"]
 
  33 if node[:kernel][:modules].include?("ipmi_si")
 
  34   default[:hardware][:modules] |= ["ipmi_devintf"]
 
  37 if File.exist?("/proc/xen")
 
  38   default[:hardware][:watchdog] = "xen_wdt"
 
  39 elsif node[:kernel][:modules].include?("i6300esb")
 
  40   default[:hardware][:watchdog] = "none"