From bbefd6b312a4af0dbe76fe2beb0bc32185758c6c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 Aug 2024 13:03:26 +0100 Subject: [PATCH] Add stretch/current-gen9 repo for HP tools on Gen9 machines --- cookbooks/apt/recipes/management-component-pack.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cookbooks/apt/recipes/management-component-pack.rb b/cookbooks/apt/recipes/management-component-pack.rb index 700ac02bd..92d81f989 100644 --- a/cookbooks/apt/recipes/management-component-pack.rb +++ b/cookbooks/apt/recipes/management-component-pack.rb @@ -30,6 +30,15 @@ if platform?("debian") components ["non-free"] key "C208ADDE26C2B797" end + + if node[:dmi][:system][:product_name].end_with?("Gen9") + apt_repository "mcp-gen9" do + uri "https://downloads.linux.hpe.com/SDR/repo/mcp" + distribution "stretch/current-gen9" + components ["non-free"] + key "C208ADDE26C2B797" + end + end elsif platform?("ubuntu") if node[:dmi][:system][:product_name].end_with?("Gen10") apt_repository "mcp-jammy" do -- 2.39.5