From: Tom Hughes Date: Sun, 25 Sep 2022 23:13:15 +0000 (+0100) Subject: Add support for HP Gen10 machines X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ea48ac6d563c698f43fd018f40ca84f7ec28f110 Add support for HP Gen10 machines --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index b6ac62291..5609bd34b 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -55,7 +55,7 @@ if node[:roles].include?("bytemark") || node[:roles].include?("exonetric") || no end case manufacturer -when "HP" +when "HP", "HPE" include_recipe "apt::management-component-pack" package "hponcfg" @@ -85,7 +85,7 @@ when "HP" only_if { node[:lsb][:release].to_f < 22.04 } end - if product.end_with?("Gen8", "Gen9") + if product.end_with?("Gen8", "Gen9", "Gen10") package "hp-ams" do action :install notifies :restart, "service[hp-ams]"