From aefd458b21fb4e22ff587b7073b8c157845d09c0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 26 Sep 2022 13:13:00 +0100 Subject: [PATCH] Use amsd instead of hp-ams on Gen10 machines --- cookbooks/hardware/recipes/default.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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") -- 2.39.5