
The class pip does not install pip, as one would expect. This fixes it. Change-Id: I926cbfc1f65805c29a72597eede8c47228bdee30
30 lines
628 B
Puppet
30 lines
628 B
Puppet
# Class: pip
|
|
#
|
|
class pip (
|
|
$index_url = 'https://pypi.python.org/simple',
|
|
$trusted_hosts = [],
|
|
$manage_pip_conf = false,
|
|
) {
|
|
include ::pip::params
|
|
validate_array($trusted_hosts)
|
|
|
|
package { $::pip::params::python_devel_package:
|
|
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',
|
|
group => 'root',
|
|
mode => '0444',
|
|
content => template('pip/pip.conf.erb'),
|
|
replace => true,
|
|
}
|
|
}
|
|
}
|