List PyPI mirrors as trusted hosts everywhere

Upcoming versions of pip are going to get more and more nasty about
non-SSL index locations. In order to deal with that well, add a global
config file listing our PyPI mirrors as "trusted" - which means
that pip will not complain about their non-SSL qualities.

Change-Id: If9f3cec10d8057631978f7f1d5cd7e4936e163ef
This commit is contained in:
Monty Taylor 2014-12-18 08:14:18 -05:00
parent c69fe6c62a
commit 680a6ab2ac
2 changed files with 13 additions and 1 deletions

View File

@ -1,2 +1,7 @@
[global] [global]
index-url = http://pypi.dfw.openstack.org/simple index-url = https://pypi.python.org/simple
trusted-host =
pypi.dfw.openstack.org
pypi.iad.openstack.org
pypi.ord.openstack.org
pypi.region-b.geo-1.openstack.org

View File

@ -72,6 +72,13 @@ class openstack_project::base(
provider => pip, provider => pip,
require => Class['pip'], require => Class['pip'],
} }
file { '/etc/pip.conf':
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/openstack_project/pip.conf',
replace => true,
}
if ($install_users) { if ($install_users) {
package { $::openstack_project::params::user_packages: package { $::openstack_project::params::user_packages: