Merge "Fix the puppet-pip module to install pip"

This commit is contained in:
Jenkins 2015-09-24 19:58:31 +00:00 committed by Gerrit Code Review
commit ce2e739614
2 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,11 @@ class pip (
ensure => present,
}
exec { 'download-pip':
command => "/usr/bin/curl ${::pip::params::get_pip_location} | /usr/bin/python",
creates => '/usr/local/bin/pip',
}
if $manage_pip_conf {
file { '/etc/pip.conf':
owner => 'root',

View File

@ -3,9 +3,11 @@
# This class holds parameters that need to be
# accessed by other classes.
class pip::params {
$get_pip_location = 'https://bootstrap.pypa.io/get-pip.py'
case $::osfamily {
'RedHat': {
$python_devel_package = 'python-devel'
$python_devel_package = 'python-devel'
$python3_devel_package = 'python3-devel'
$python3_pip_package = 'python3-pip'
}