]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Avoid installing megaclisas-status on Ubuntu 22.04
[chef.git] / cookbooks / hardware / recipes / default.rb
index 7e403a0d62d9d815561ecc6b17b3680e637e0ae9..ae00d3b9e098bd398cd10396b89ffda6a8a22f59 100644 (file)
@@ -239,10 +239,10 @@ if node[:virtualization][:role] != "guest" ||
       status_packages["megaraid-status"] ||= []
     when "megaraid_sas"
       tools_packages << "megacli"
-      status_packages["megaclisas-status"] ||= []
+      status_packages["megaclisas-status"] ||= [] if node[:lsb][:release].to_f < 22.04
     when "aacraid"
       tools_packages << "arcconf"
-      status_packages["aacraid-status"] ||= [] if node[:lsb][:release].to_f < 22.04
+      status_packages["aacraid-status"] ||= []
     when "arcmsr"
       tools_packages << "areca"
     end