From 89ca495a82dfe16679e50f78dd9b67b17aea9536 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 6 Sep 2026 10:11:02 +0100 Subject: [PATCH] Use trixie repository for HP MCP on Debian 13 --- .../apt/recipes/management-component-pack.rb | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/cookbooks/apt/recipes/management-component-pack.rb b/cookbooks/apt/recipes/management-component-pack.rb index 9874d5e26..c5b48d064 100644 --- a/cookbooks/apt/recipes/management-component-pack.rb +++ b/cookbooks/apt/recipes/management-component-pack.rb @@ -24,21 +24,9 @@ apt_repository "management-component-pack" do end if platform?("debian") - distribution = if node[:lsb][:release].to_f > 12 - "bookworm" - else - node[:lsb][:codename] - end - - legacy_key_options = if node[:lsb][:release].to_f > 12 - ["allow-insecure=yes"] - else - [] - end - apt_repository "mcp" do uri "https://downloads.linux.hpe.com/SDR/repo/mcp" - distribution "#{distribution}/current" + distribution "#{node[:lsb][:codename]}/current" components ["non-free"] key "https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key2.pub" end @@ -49,7 +37,7 @@ if platform?("debian") distribution "stretch/current-gen9" components ["non-free"] key "https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub" - options legacy_key_options + options ["allow-insecure=yes"] end end elsif platform?("ubuntu") -- 2.47.3