Skip to content

Commit 4523bd7

Browse files
Add Support for RedHat/CentOS 9
1 parent 2ac598c commit 4523bd7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

manifests/install.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@
215215
if String($python::version) =~ /^python3/ {
216216
$pip_package = "${python}-pip"
217217
$pip_provider = $python.regsubst(/^.*python3\.?/,'pip3.').regsubst(/\.$/,'')
218+
} elsif ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '9') >= 0) {
219+
$pip_package = 'python3-pip'
220+
$pip_provider = pip3
218221
} elsif ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '8') >= 0) {
219222
$pip_package = 'python3-pip'
220223
$pip_provider = pip3

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
$gunicorn_package_name = $facts['os']['family'] ? {
3030
'RedHat' => $facts['os']['release']['major'] ? {
31+
'9' => 'python3-gunicorn',
3132
'8' => 'python3-gunicorn',
3233
default => 'python-gunicorn',
3334
},

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"operatingsystem": "CentOS",
2525
"operatingsystemrelease": [
2626
"7",
27-
"8"
27+
"8",
28+
"9"
2829
]
2930
},
3031
{

0 commit comments

Comments
 (0)