Merge "Fix the puppet-pip module to install pip"
This commit is contained in:
commit
ce2e739614
|
@ -12,6 +12,11 @@ class pip (
|
||||||
ensure => present,
|
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 {
|
if $manage_pip_conf {
|
||||||
file { '/etc/pip.conf':
|
file { '/etc/pip.conf':
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|
|
@ -3,9 +3,11 @@
|
||||||
# This class holds parameters that need to be
|
# This class holds parameters that need to be
|
||||||
# accessed by other classes.
|
# accessed by other classes.
|
||||||
class pip::params {
|
class pip::params {
|
||||||
|
$get_pip_location = 'https://bootstrap.pypa.io/get-pip.py'
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
$python_devel_package = 'python-devel'
|
$python_devel_package = 'python-devel'
|
||||||
$python3_devel_package = 'python3-devel'
|
$python3_devel_package = 'python3-devel'
|
||||||
$python3_pip_package = 'python3-pip'
|
$python3_pip_package = 'python3-pip'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue