puppet-pip/manifests/init.pp

25 lines
474 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,
}
if $manage_pip_conf {
file { '/etc/pip.conf':
owner => 'root',
group => 'root',
mode => '0444',
content => template('pip/pip.conf.erb'),
replace => true,
}
}
}