From: Tom Hughes Date: Sun, 25 Sep 2022 23:41:23 +0000 (+0100) Subject: Use focal/current-gen10 repository for Gen10 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/791e8ac419fd611ec7aeed0db4ca5b41ff706e4e Use focal/current-gen10 repository for Gen10 --- 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