]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
hardware: Set OSM ilo defaults
[chef.git] / cookbooks / hardware / recipes / default.rb
index 7e403a0d62d9d815561ecc6b17b3680e637e0ae9..952729a007cf9664e2ad0fa252b230860f77e197 100644 (file)
@@ -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]"
@@ -242,7 +255,7 @@ if node[:virtualization][:role] != "guest" ||
       status_packages["megaclisas-status"] ||= []
     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