X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2644c33f556000f2c1eabe316784921af50be10c..0e39eff9759a6ae4c50c5ed8eeb9e8bef2d2ad64:/cookbooks/hardware/attributes/default.rb diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index bbe44348e..f0b0f73b1 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -1,4 +1,5 @@ default[:hardware][:modules] = %w[lp] +default[:hardware][:blacklisted_modules] = %w[] default[:hardware][:grub][:cmdline] = %w[nomodeset] default[:hardware][:sensors] = {} default[:hardware][:hwmon] = {} @@ -32,6 +33,10 @@ end if node[:kernel][:modules].include?("ipmi_si") default[:hardware][:modules] |= ["ipmi_devintf"] + + if node[:kernel][:modules].include?("acpi_power_meter") + default[:hardware][:modules] |= ["acpi_ipmi"] + end end if File.exist?("/proc/xen")