From: Tom Hughes Date: Mon, 26 Sep 2022 12:13:00 +0000 (+0100) Subject: Use amsd instead of hp-ams on Gen10 machines X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/aefd458b21fb4e22ff587b7073b8c157845d09c0?hp=29016dedd6532f9f43550e75d114f628138c076a Use amsd instead of hp-ams on Gen10 machines --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 0b25e7bf4..0821ef1e0 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -95,6 +95,16 @@ when "HP", "HPE" action [:enable, :start] supports :status => true, :restart => true end + elsif product.end_with?("Gen10") + package "amsd" do + action :install + notifies :restart, "service[amsd]" + end + + service "amsd" do + action [:enable, :start] + supports :status => true, :restart => true + end end units << if product.end_with?("Gen10")