X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/eee918711444ec8414ac795345e5c6b38864118e..6cc470f594f7cdf414ce249fce84c489f121d1e3:/cookbooks/hardware/attributes/default.rb diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index 73940d9b7..904b51e36 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -10,7 +10,9 @@ if node[:dmi] and node[:dmi][:system] end if node[:kernel] and node[:kernel][:modules] - if node[:kernel][:modules].include?("mpt2sas") + raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"] + + unless raidmods.empty? default[:apt][:sources] |= [ "hwraid" ] end end