]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Switch apt allow-downgrades for force-yes for backward compatibility
[chef.git] / cookbooks / hardware / recipes / default.rb
index 1308f44fcfac3a5fa2bd68021af0f6c6edbbd707..7d326d68bb28abf98955d27f9337bd3394c71f53 100644 (file)
@@ -59,7 +59,20 @@ end
 case manufacturer
 when "HP"
   package "hponcfg"
-  package "hp-health"
+
+  # Downgrade hp-health to 10.0.0.1.3-4. as 10.40-1815.49 has issues with reliable startup
+  package "hp-health" do
+    action :install
+    version "10.0.0.1.3-4."
+    options "--force-yes"
+    notifies :restart, "service[hp-health]"
+  end
+
+  service "hp-health" do
+    action [:enable, :start]
+    supports :status => true, :restart => true
+  end
+
   units << "1"
 when "TYAN"
   units << "0"