diff --git a/manifests/install.pp b/manifests/install.pp index fe0e1911..cbe7713f 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -233,9 +233,12 @@ } } - if "${::python::version}" =~ /^python3/ { #lint:ignore:only_variable_string + if "${python::version}" =~ /^python3/ and ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '7') >= 0) { #lint:ignore:only_variable_string $pip_category = undef - $pip_package = 'python3-pip' + $pip_package = 'python34-pip' + } elsif "${python::version}" =~ /^python3/ { #lint:ignore:only_variable_string + $pip_category = undef + $pip_package = '1' } elsif ($::osfamily == 'RedHat') and (versioncmp($::operatingsystemmajrelease, '7') >= 0) { $pip_category = undef $pip_package = 'python2-pip'