Skip to content

Commit

Permalink
Merge pull request #5 from covataamos/master
Browse files Browse the repository at this point in the history
Add support for python2-pip on redhat 7
  • Loading branch information
jdavisp3 authored Dec 14, 2016
2 parents cb611e0 + 18bd25e commit 611a84e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,23 @@
$site_packages = "/usr/local/lib/python${version}/dist-packages"
}
redhat: {
case $::operatingsystemmajrelease {
'6': {
$version = '2.6'
$pip = 'python-pip'
}
'7': {
$version = '2.7'
$pip = 'python2-pip'
}
default: {
fail("redhat version \"${::operatingsystemmajrelease}\" not supported")
}
}
$ensure = 'installed'
$version = '2.6'
$package = 'python'
$setuptools = 'python-setuptools'
$devel = 'python-devel'
$pip = 'python-pip'
$virtualenv = 'python-virtualenv'
$interpreter = '/usr/bin/python'
$site_packages = "/usr/lib/python${version}/site-packages"
Expand Down

0 comments on commit 611a84e

Please sign in to comment.