Skip to content

Commit 2fc8dee

Browse files
committed
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
1 parent 8958994 commit 2fc8dee

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

data/family/Debian.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
rabbitmq::python_package: 'python3'
23
rabbitmq::package_name: 'rabbitmq-server'
34
rabbitmq::service_name: 'rabbitmq-server'
45
rabbitmq::package_gpg_key: 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey'

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
{
2424
"operatingsystem": "Debian",
2525
"operatingsystemrelease": [
26-
"10"
26+
"10",
27+
"11"
2728
]
2829
},
2930
{

spec/classes/rabbitmq_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@
190190
is_expected.to contain_archive('rabbitmqadmin').with_source('http://1.1.1.1:15672/cli/rabbitmqadmin')
191191
end
192192

193-
it { is_expected.to contain_package('python') } if %w[RedHat Debian SUSE Archlinux].include?(os_facts[:os]['family'])
193+
it { is_expected.to contain_package('python') } if %w[RedHat SUSE Archlinux].include?(os_facts[:os]['family'])
194+
it { is_expected.to contain_package('python3') } if %w[Debian].include?(os_facts[:os]['family'])
194195
it { is_expected.to contain_package('python38') } if %w[FreeBSD].include?(os_facts[:os]['family'])
195196
end
196197

0 commit comments

Comments
 (0)