Skip to content

Commit

Permalink
Add Support for RedHat/CentOS 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdrinBottomline committed Nov 27, 2023
1 parent 2ac598c commit 4523bd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@
if String($python::version) =~ /^python3/ {
$pip_package = "${python}-pip"
$pip_provider = $python.regsubst(/^.*python3\.?/,'pip3.').regsubst(/\.$/,'')
} elsif ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '9') >= 0) {
$pip_package = 'python3-pip'
$pip_provider = pip3
} elsif ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '8') >= 0) {
$pip_package = 'python3-pip'
$pip_provider = pip3
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

$gunicorn_package_name = $facts['os']['family'] ? {
'RedHat' => $facts['os']['release']['major'] ? {
'9' => 'python3-gunicorn',
'8' => 'python3-gunicorn',
default => 'python-gunicorn',
},
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
Expand Down

0 comments on commit 4523bd7

Please sign in to comment.