Skip to content

Commit

Permalink
Merge pull request #1511 from voxpupuli/debian11
Browse files Browse the repository at this point in the history
Add support for Debian 11
  • Loading branch information
ekohl committed Aug 22, 2022
2 parents d7e1f6c + c9cb4a7 commit 114323a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10"
"10",
"11"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
pkg_cmd = 'dpkg -s nginx | grep ^Maintainer'
pkg_remove_cmd = 'apt-get -y purge nginx nginx-common'
pkg_match = case fact('operatingsystemmajrelease')
when '10'
when '10', '11'
%r{Debian Nginx Maintainers}
when '18.04', '20.04'
%r{Ubuntu Developers}
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/nginx_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@

it { is_expected.to contain_package('nginx') }

if (facts[:lsbdistid] == 'Debian' && %w[9 10].include?(facts.dig(:os, 'release', 'major'))) ||
if (facts[:lsbdistid] == 'Debian' && %w[10 11].include?(facts.dig(:os, 'release', 'major'))) ||
(facts[:lsbdistid] == 'Ubuntu' && %w[bionic focal].include?(facts[:lsbdistcodename]))
it { is_expected.to contain_package('libnginx-mod-http-passenger') }
else
Expand Down

0 comments on commit 114323a

Please sign in to comment.