Skip to content

Commit 137212f

Browse files
committed
Working solution on CentOS7
1 parent 81e3715 commit 137212f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

manifests/install.pp

+5-2
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,12 @@
233233
}
234234
}
235235

236-
if "${::python::version}" =~ /^python3/ { #lint:ignore:only_variable_string
236+
if "${::python::version}" =~ /^python3/ and ($::osfamily == 'RedHat') and (versioncmp($::operatingsystemmajrelease, '7') >= 0) { #lint:ignore:only_variable_string
237237
$pip_category = undef
238-
$pip_package = 'python3-pip'
238+
$pip_package = 'python34-pip'
239+
} elsif "${::python::version}" =~ /^python3/ {
240+
$pip_category = undef
241+
$pip_package = '1'
239242
} elsif ($::osfamily == 'RedHat') and (versioncmp($::operatingsystemmajrelease, '7') >= 0) {
240243
$pip_category = undef
241244
$pip_package = 'python2-pip'

0 commit comments

Comments
 (0)