Skip to content

Commit 61c272e

Browse files
authored
Merge pull request #1600 from TheMeier/debian12
Add Debian 12 support
2 parents 417c599 + b05a8e4 commit 61c272e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

metadata.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
{
2828
"operatingsystem": "Debian",
2929
"operatingsystemrelease": [
30-
"11"
30+
"11",
31+
"12"
3132
]
3233
},
3334
{

spec/acceptance/class_spec.rb

+3-8
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@
99
when 'RedHat'
1010
pkg_cmd = 'yum info nginx | grep "^From repo"'
1111
pkg_remove_cmd = 'yum -y remove nginx nginx-filesystem passenger'
12-
pkg_match = case fact('operatingsystemmajrelease')
13-
when '7' # https://blog.phusion.nl/2020/05/29/passenger-6-0-5/
14-
%r{epel}
15-
else
16-
test_passenger = false
17-
end
12+
test_passenger = false
1813
when 'Debian'
1914
pkg_cmd = 'dpkg -s nginx | grep ^Maintainer'
2015
pkg_remove_cmd = 'apt-get -y purge nginx nginx-common'
21-
pkg_match = case fact('operatingsystemmajrelease')
22-
when '11'
16+
pkg_match = case fact('os.release.major')
17+
when '11', '12'
2318
%r{Debian Nginx Maintainers}
2419
when '18.04', '20.04', '22.04'
2520
%r{Ubuntu Developers}

0 commit comments

Comments
 (0)