1 default[:hardware][:modules] = if node[:lsb][:release].to_f >= 16.04
7 default[:hardware][:grub][:cmdline] = %w[nomodeset]
8 default[:hardware][:sensors] = {}
10 if node[:dmi] && node[:dmi][:system]
11 case node[:dmi][:system][:manufacturer]
13 default[:apt][:sources] |= ["management-component-pack"]
15 case node[:dmi][:system][:product_name]
16 when "ProLiant DL360 G6", "ProLiant DL360 G7"
17 default[:hardware][:sensors][:"power_meter-*"][:power][:power1] = { :ignore => true }
22 if Chef::Util.compare_versions(node[:kernel][:release], [3, 3]).negative?
23 default[:hardware][:modules] |= ["microcode"]
25 if node[:cpu][:"0"][:vendor_id] == "GenuineIntel"
26 default[:hardware][:modules] |= ["coretemp"]
30 if node[:kernel] && node[:kernel][:modules]
31 raidmods = node[:kernel][:modules].keys & %w[cciss hpsa mptsas mpt2sas mpt3sas megaraid_mm megaraid_sas aacraid]
33 default[:apt][:sources] |= ["hwraid"] unless raidmods.empty?
36 if node[:kernel][:modules].include?("ipmi_si")
37 default[:hardware][:modules] |= ["ipmi_devintf"]
40 if File.exist?("/proc/xen")
41 default[:hardware][:watchdog] = "xen_wdt"
42 elsif node[:kernel][:modules].include?("i6300esb")
43 default[:hardware][:watchdog] = "none"