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 "--allow-downgrades"
+ notifies :restart, "service[hp-health]"
+ end
+
+ service "hp-health" do
+ action [:enable, :start]
+ supports :status => true, :restart => true, :reload => true
+ end
+
units << "1"
when "TYAN"
units << "0"
# Remove legacy HP G4 support which breaks modern hp-health 10.4
if manufacturer == "HP"
- file "/opt/hp/hp-health/bin/hpasmd" do
- action :delete
- end
- file "/usr/lib/libhpasmintrfc.so.3.0" do
- action :delete
- end
-
- file "/usr/lib/libhpasmintrfc.so.3" do
- action :delete
- end
-
- file "/usr/lib/libhpasmintrfc.so" do
- action :delete
+ %w(/opt/hp/hp-health/bin/hpasmd /usr/lib/libhpasmintrfc.so.3.0 %/usr/lib/libhpasmintrfc.so.3 /usr/lib/libhpasmintrfc.so).each do |filename|
+ file filename do
+ action :delete
+ end
end
directory "/opt/hp/hp-legacy" do