Skip to content

Commit

Permalink
Add support for Debian 11
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wyardley committed Jun 27, 2024
1 parent 8958994 commit 99ac795
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/family/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
rabbitmq::package_name: 'rabbitmq-server'
rabbitmq::service_name: 'rabbitmq-server'
rabbitmq::package_gpg_key: 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey'
rabbitmq::python_package: 'python3'
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10"
"10",
"11"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@
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('python38') } if %w[FreeBSD].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 'Debian'.include?(os_facts[:os]['family'])
it { is_expected.to contain_package('python38') } if 'FreeBSD'.include?(os_facts[:os]['family'])
end

context 'with manage_python false' do
Expand Down

0 comments on commit 99ac795

Please sign in to comment.