X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6637cee462a3879f0e17ebe1d2310d509d6e7919..ba4a43e8d9825099d9203ad3baf1417b50b7958c:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index ae00d3b9e..952729a00 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -59,6 +59,19 @@ case manufacturer when "HP" package "hponcfg" + execute "update-ilo" do + action :nothing + command "/usr/sbin/hponcfg -f /etc/ilo-defaults.xml" + end + + template "/etc/ilo-defaults.xml" do + source "ilo-defaults.xml.erb" + owner "root" + group "root" + mode "644" + notifies :run, "execute[update-ilo]" + end + package "hp-health" do action :install notifies :restart, "service[hp-health]" @@ -239,7 +252,7 @@ if node[:virtualization][:role] != "guest" || status_packages["megaraid-status"] ||= [] when "megaraid_sas" tools_packages << "megacli" - status_packages["megaclisas-status"] ||= [] if node[:lsb][:release].to_f < 22.04 + status_packages["megaclisas-status"] ||= [] when "aacraid" tools_packages << "arcconf" status_packages["aacraid-status"] ||= []