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:
parent
a0d714c7cf
commit
b34777a383
@ -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',
|
||||
|
@ -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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user