Paul Belanger a0d714c7cf Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: I498052d2db57e571f0f91cd2c2e43e39c693331f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 14:11:06 -04:00

25 lines
476 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,
}
}
}