File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 275
275
$pip_category = undef
276
276
$pip_package = " ${python} -pip"
277
277
$pip_provider = $python .regsubst(/^.*python3\.?/,' pip3.' ).regsubst(/\.$/,' ' )
278
+ } elsif ($facts [' os' ][' family' ] == ' RedHat' ) and (versioncmp($facts [' os' ][' release' ][' major' ], ' 8' ) >= 0) {
279
+ $pip_category = undef
280
+ $pip_package = ' python3-pip'
281
+ $pip_provider = pip3
278
282
} elsif ($facts [' os' ][' family' ] == ' RedHat' ) and (versioncmp($facts [' os' ][' release' ][' major' ], ' 7' ) >= 0) {
279
283
$pip_category = undef
280
284
$pip_package = ' python2-pip'
Original file line number Diff line number Diff line change 46
46
default => ' gunicorn' ,
47
47
}
48
48
49
- $version = $facts [' os' ][' release' ][' major' ] ? {
50
- ' 20.04' => ' 3' ,
51
- default => ' system' ,
49
+ if $facts [' os' ][' family' ] == ' RedHat' and $facts [' os' ][' release' ][' major' ] == ' 8' {
50
+ $version = ' 3'
51
+ } elsif $facts [' os' ][' release' ][' major' ] == ' 20.04' {
52
+ $version = ' 3'
53
+ } else {
54
+ $version = ' system'
52
55
}
53
56
}
Original file line number Diff line number Diff line change 25
25
{
26
26
"operatingsystem" : " CentOS" ,
27
27
"operatingsystemrelease" : [
28
- " 7"
28
+ " 7" ,
29
+ " 8"
29
30
]
30
31
},
31
32
{
You can’t perform that action at this time.
0 commit comments