Skip to content

Commit

Permalink
Merge pull request #1514 from voxpupuli/ubuntu2204
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Aug 24, 2022
2 parents 113f3d2 + 6e25548 commit 65a83a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04"
"20.04",
"22.04"
]
}
]
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 @@ -23,7 +23,7 @@
pkg_match = case fact('operatingsystemmajrelease')
when '10', '11'
%r{Debian Nginx Maintainers}
when '18.04', '20.04'
when '18.04', '20.04', '22.04'
%r{Ubuntu Developers}
else
%r{Phusion}
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/nginx_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@

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

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

0 comments on commit 65a83a8

Please sign in to comment.