]> git.openstreetmap.org Git - chef.git/commitdiff
hardware: install apt::hwraid before use
authorGrant Slater <github@firefishy.com>
Fri, 5 Jul 2024 12:05:27 +0000 (13:05 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 5 Jul 2024 12:05:27 +0000 (13:05 +0100)
cookbooks/hardware/recipes/default.rb

index 4122a7ac8e5172d25855e369dc17abb0d111e880..2fbf301418faae2419c3387ef7da68dee84f8cff 100644 (file)
@@ -331,6 +331,8 @@ if node[:virtualization][:role] != "guest" ||
   end
 end
 
+include_recipe "apt::hwraid" unless status_packages.empty?
+
 %w[ssacli lsiutil sas2ircu megactl megacli arcconf].each do |tools_package|
   if tools_packages.include?(tools_package)
     package tools_package
@@ -359,8 +361,6 @@ else
   end
 end
 
-include_recipe "apt::hwraid" unless status_packages.empty?
-
 %w[cciss-vol-status mpt-status sas2ircu-status megaclisas-status aacraid-status].each do |status_package|
   if status_packages.include?(status_package)
     package status_package