From: Grant Slater Date: Tue, 19 Jul 2022 17:57:57 +0000 (+0300) Subject: hardware: Set OSM ilo defaults X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/516bfa7f6ea92c0c2f08a1897a92f66ce6979cfa hardware: Set OSM ilo defaults --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 49af1f52e..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]" diff --git a/cookbooks/hardware/templates/default/ilo-defaults.xml.erb b/cookbooks/hardware/templates/default/ilo-defaults.xml.erb new file mode 100644 index 000000000..c4b62eced --- /dev/null +++ b/cookbooks/hardware/templates/default/ilo-defaults.xml.erb @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + +