X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/535456508231fd5fd5e4c3d6671cb7a018b39771..7428cac616a46d189eaa30ce55d6c2978c07c34b:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 1a9549d7c..f2af6c986 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -65,6 +65,18 @@ when "HP" supports :status => true, :restart => true end + if product.end_with?("Gen8", "Gen9") + package "hp-ams" do + action :install + notifies :restart, "service[hp-ams]" + end + + service "hp-ams" do + action [:enable, :start] + supports :status => true, :restart => true + end + end + units << "1" when "TYAN" units << "0" @@ -81,21 +93,6 @@ when "IBM" units << "0" end -# Remove legacy HP G4 support which breaks modern hp-health 10.4 -if manufacturer == "HP" - %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 - manage_symlink_source false - end - end - - directory "/opt/hp/hp-legacy" do - action :delete - recursive true - end -end - units.sort.uniq.each do |unit| if node[:lsb][:release].to_f >= 16.04 service "serial-getty@ttyS#{unit}" do