Use OpenStack PyPi mirror.

Fixes bug 999675.

Add pip and easy_install configuration files that will use
the OpenStack PyPi mirror. Pip will failover to the standard
PyPi mirror for packages not found on the OpenStack mirror.
Note that easy_install does not have this failover capability.

Change-Id: Idcc95e2ee3f74de46cdfdc586adc93eff52a2aa9
This commit is contained in:
David Shrewsbury 2012-05-16 09:44:03 -04:00
parent 90531483b0
commit eeb150a96d
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,3 @@
[global]
index-url = http://pypi.openstack.org
extra-index-url = http://pypi.python.org/simple

View File

@ -0,0 +1,2 @@
[easy_install]
index_url = http://pypi.openstack.org

View File

@ -23,7 +23,34 @@ define jenkinsuser($ensure = present, $ssh_key) {
require => User['jenkins']
}
file { 'jenkinspipdir':
name => '/home/jenkins/.pip',
owner => 'jenkins',
group => 'jenkins',
ensure => 'directory',
require => File['jenkinshome'],
}
file { 'jenkinspipconf':
name => '/home/jenkins/.pip/pip.conf',
owner => 'jenkins',
group => 'jenkins',
mode => 640,
ensure => 'present',
source => "puppet:///modules/jenkins_slave/pip.conf",
require => File['jenkinspipdir'],
}
file { 'jenkinspydistutilscfg':
name => '/home/jenkins/.pydistutils.cfg',
owner => 'jenkins',
group => 'jenkins',
mode => 640,
ensure => 'present',
source => "puppet:///modules/jenkins_slave/pydistutils.cfg",
require => File['jenkinshome'],
}
file { 'jenkinssshdir':
name => '/home/jenkins/.ssh',
owner => 'jenkins',