Skip to content

Commit 7837ddd

Browse files
authored
Merge pull request #1599 from TheMeier/drop_old_os
Drop RHEL 7, CentOS 7&8, VirtuozzoLinux 6&7
2 parents 1cb153a + 992a153 commit 7837ddd

File tree

4 files changed

+33
-58
lines changed

4 files changed

+33
-58
lines changed

.github/CONTRIBUTING.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
## Table of contents
44

5-
* [Contributing](#contributing)
6-
* [Writing proper commits - short version](#writing-proper-commits-short-version)
7-
* [Writing proper commits - long version](#writing-proper-commits-long-version)
8-
* [Dependencies](#dependencies)
9-
* [Note for OS X users](#note-for-os-x-users)
10-
* [The test matrix](#the-test-matrix)
11-
* [Syntax and style](#syntax-and-style)
12-
* [Running the unit tests](#running-the-unit-tests)
13-
* [Unit tests in docker](#unit-tests-in-docker)
14-
* [Integration tests](#integration-tests)
5+
- [Contribution guidelines](#contribution-guidelines)
6+
- [Table of contents](#table-of-contents)
7+
- [Contributing](#contributing)
8+
- [Writing proper commits - short version](#writing-proper-commits---short-version)
9+
- [Writing proper commits - long version](#writing-proper-commits---long-version)
10+
- [Dependencies](#dependencies)
11+
- [Note for OS X users](#note-for-os-x-users)
12+
- [The test matrix](#the-test-matrix)
13+
- [Syntax and style](#syntax-and-style)
14+
- [Running the unit tests](#running-the-unit-tests)
15+
- [Unit tests in docker](#unit-tests-in-docker)
16+
- [Integration tests](#integration-tests)
1517

1618
This module has grown over time based on a range of contributions from
1719
people using it. If you follow these contributing guidelines your patch
@@ -251,8 +253,6 @@ The following strings are known to work:
251253
* ubuntu2004
252254
* ubuntu2204
253255
* debian11
254-
* centos7
255-
* centos8
256256
* centos9
257257
* almalinux8
258258
* almalinux9

manifests/package/redhat.pp

+20-35
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
default => 'rhel'
2020
}
2121

22-
$want_module_hotfixes = if versioncmp(fact('os.release.full'), '8.0') >= 0 {
23-
'1'
24-
} else {
25-
'absent'
26-
}
27-
2822
if $manage_repo {
2923
case $package_source {
3024
'nginx', 'nginx-stable': {
@@ -36,7 +30,7 @@
3630
priority => '1',
3731
gpgkey => 'https://nginx.org/keys/nginx_signing.key',
3832
before => Package['nginx'],
39-
module_hotfixes => $want_module_hotfixes,
33+
module_hotfixes => '1',
4034
}
4135

4236
if $purge_passenger_repo {
@@ -55,7 +49,7 @@
5549
priority => '1',
5650
gpgkey => 'https://nginx.org/keys/nginx_signing.key',
5751
before => Package['nginx'],
58-
module_hotfixes => $want_module_hotfixes,
52+
module_hotfixes => '1',
5953
}
6054

6155
if $purge_passenger_repo {
@@ -66,35 +60,26 @@
6660
}
6761
}
6862
'passenger': {
69-
if ($facts['os']['name'] in ['RedHat', 'CentOS', 'VirtuozzoLinux', 'Rocky', 'AlmaLinux']) and ($facts['os']['release']['major'] in ['6', '7', '8', '9']) {
70-
# 2019-11: Passenger changed their gpg key from: `https://packagecloud.io/phusion/passenger/gpgkey`
71-
# to: `https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt`
72-
# Find the latest key by opening: https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
73-
74-
# Also note: Since 6.0.5 there are no nginx packages in the phusion EL7 repository, and nginx packages are expected to come from epel instead
75-
yumrepo { 'passenger':
76-
baseurl => "https://oss-binaries.phusionpassenger.com/yum/passenger/el/${facts['os']['release']['major']}/\$basearch",
77-
descr => 'passenger repo',
78-
enabled => '1',
79-
gpgcheck => '0',
80-
repo_gpgcheck => '1',
81-
priority => '1',
82-
gpgkey => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',
83-
before => Package['nginx'],
84-
module_hotfixes => $want_module_hotfixes,
85-
}
63+
yumrepo { 'passenger':
64+
baseurl => "https://oss-binaries.phusionpassenger.com/yum/passenger/el/${facts['os']['release']['major']}/\$basearch",
65+
descr => 'passenger repo',
66+
enabled => '1',
67+
gpgcheck => '0',
68+
repo_gpgcheck => '1',
69+
priority => '1',
70+
gpgkey => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',
71+
before => Package['nginx'],
72+
module_hotfixes => '1',
73+
}
8674

87-
yumrepo { 'nginx-release':
88-
ensure => absent,
89-
before => Package['nginx'],
90-
}
75+
yumrepo { 'nginx-release':
76+
ensure => absent,
77+
before => Package['nginx'],
78+
}
9179

92-
package { $passenger_package_name:
93-
ensure => $passenger_package_ensure,
94-
require => Yumrepo['passenger'],
95-
}
96-
} else {
97-
fail("${facts['os']['name']} version ${facts['os']['release']['major']} is unsupported with \$package_source 'passenger'")
80+
package { $passenger_package_name:
81+
ensure => $passenger_package_ensure,
82+
require => Yumrepo['passenger'],
9883
}
9984
}
10085
default: {

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
}
138138
}
139139
'RedHat': {
140-
if ($facts['os']['name'] in ['RedHat', 'CentOS', 'Oracle', 'virtuozzolinux', 'Rocky', 'AlmaLinux'] and $facts['os']['release']['major'] in ['6', '7', '8', '9']) {
140+
if $facts['os']['name'] in ['RedHat', 'CentOS', 'Oracle', 'virtuozzolinux', 'Rocky', 'AlmaLinux'] {
141141
$_module_os_overrides = {
142142
'manage_repo' => true,
143143
'log_group' => 'nginx',

metadata.json

-10
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
{
3737
"operatingsystem": "RedHat",
3838
"operatingsystemrelease": [
39-
"7",
4039
"8",
4140
"9"
4241
]
@@ -58,18 +57,9 @@
5857
{
5958
"operatingsystem": "CentOS",
6059
"operatingsystemrelease": [
61-
"7",
62-
"8",
6360
"9"
6461
]
6562
},
66-
{
67-
"operatingsystem": "VirtuozzoLinux",
68-
"operatingsystemrelease": [
69-
"6",
70-
"7"
71-
]
72-
},
7363
{
7464
"operatingsystem": "SLES"
7565
},

0 commit comments

Comments
 (0)