From 2fc8deeed5413f6d95153de27095b3373976e58d Mon Sep 17 00:00:00 2001 From: William Yardley Date: Wed, 26 Jun 2024 19:42:16 -0700 Subject: [PATCH] Add support for Debian 11 Add metadata support for Debian 11, and use the "python3" package for the entire Debian family. This appears to be valid for both currently supported versions Closes #1008 --- data/family/Debian.yaml | 1 + metadata.json | 3 ++- spec/classes/rabbitmq_spec.rb | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/family/Debian.yaml b/data/family/Debian.yaml index 77d8d0f03..055c368c7 100644 --- a/data/family/Debian.yaml +++ b/data/family/Debian.yaml @@ -1,4 +1,5 @@ --- +rabbitmq::python_package: 'python3' rabbitmq::package_name: 'rabbitmq-server' rabbitmq::service_name: 'rabbitmq-server' rabbitmq::package_gpg_key: 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey' diff --git a/metadata.json b/metadata.json index 5227f581d..5731baa11 100644 --- a/metadata.json +++ b/metadata.json @@ -23,7 +23,8 @@ { "operatingsystem": "Debian", "operatingsystemrelease": [ - "10" + "10", + "11" ] }, { diff --git a/spec/classes/rabbitmq_spec.rb b/spec/classes/rabbitmq_spec.rb index 09cb19fc3..56d1c2cca 100644 --- a/spec/classes/rabbitmq_spec.rb +++ b/spec/classes/rabbitmq_spec.rb @@ -190,7 +190,8 @@ is_expected.to contain_archive('rabbitmqadmin').with_source('http://1.1.1.1:15672/cli/rabbitmqadmin') end - it { is_expected.to contain_package('python') } if %w[RedHat Debian SUSE Archlinux].include?(os_facts[:os]['family']) + it { is_expected.to contain_package('python') } if %w[RedHat SUSE Archlinux].include?(os_facts[:os]['family']) + it { is_expected.to contain_package('python3') } if %w[Debian].include?(os_facts[:os]['family']) it { is_expected.to contain_package('python38') } if %w[FreeBSD].include?(os_facts[:os]['family']) end