X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6c9483e040382f452c16fb1b11a93e6b761d65b0..ba4a43e8d9825099d9203ad3baf1417b50b7958c:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 611ebb74d..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]" @@ -233,7 +246,7 @@ if node[:virtualization][:role] != "guest" || status_packages["mpt-status"] ||= [] when "mpt2sas", "mpt3sas" tools_packages << "sas2ircu" - status_packages["sas2ircu-status"] ||= [] if node[:lsb][:release].to_f < 22.04 + status_packages["sas2ircu-status"] ||= [] when "megaraid_mm" tools_packages << "megactl" status_packages["megaraid-status"] ||= []