From 791e8ac419fd611ec7aeed0db4ca5b41ff706e4e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 26 Sep 2022 00:41:23 +0100 Subject: [PATCH] Use focal/current-gen10 repository for Gen10 --- cookbooks/apt/recipes/management-component-pack.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cookbooks/apt/recipes/management-component-pack.rb b/cookbooks/apt/recipes/management-component-pack.rb index 3b3f09b09..50ec5b8d1 100644 --- a/cookbooks/apt/recipes/management-component-pack.rb +++ b/cookbooks/apt/recipes/management-component-pack.rb @@ -19,9 +19,15 @@ include_recipe "apt" +distribution_name = if node[:dmi][:system][:product_name].end_with?("Gen10") + "focal/current-gen10" + else + "bionic/current-gen9" + end + apt_repository "management-component-pack" do uri "https://downloads.linux.hpe.com/SDR/repo/mcp" - distribution "bionic/current-gen9" + distribution distribution_name components ["non-free"] key "C208ADDE26C2B797" end -- 2.43.2