Fix the puppet-pip module to install pip

The class pip does not install pip, as one
would expect.
This fixes it.

Change-Id: I926cbfc1f65805c29a72597eede8c47228bdee30
This commit is contained in:
Ricardo Carrillo Cruz 2015-08-10 07:28:02 +00:00
parent a0d714c7cf
commit b34777a383
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'
}