
The upstream pip provider hard-codes pypi.python.org as the index to search when determining the latest available release of a package. This means puppet won't use our mirrors on the second run of a pip package resource using ensure => latest. This patch adds a new provider that inherits from the upstream one and overrides the latest() method to just use `pip list --outdated` to see what the latest version is. This could potentially be proposed upstream in the future depending on what versions of pip support 'list --outdated' and what systems require support. To use this, package resources currently using the 'pip' provider will have to switch to the 'openstack_pip' provider. Change-Id: I6c24c8f99fb3f879a30d21f38d1ad883f96f7937
36 lines
541 B
Puppet
36 lines
541 B
Puppet
include pip
|
|
|
|
$packages = [
|
|
'Babel',
|
|
'bandersnatch',
|
|
'elasticsearch-curator',
|
|
'gear',
|
|
'git-review',
|
|
'irclog2html',
|
|
'gerritbot',
|
|
'keyring',
|
|
'ndg-httpsclient',
|
|
'pyasn1',
|
|
'PyGithub',
|
|
'pyOpenSSL',
|
|
'python-jenkins',
|
|
'python-subunit',
|
|
'python-swiftclient',
|
|
'PyYAML',
|
|
'requests',
|
|
'requestsexceptions',
|
|
'shade',
|
|
'statsd',
|
|
'SQLAlchemy',
|
|
'subunit2sql',
|
|
'testtools',
|
|
'tox',
|
|
'virtualenv',
|
|
'yappi',
|
|
]
|
|
package { $packages:
|
|
ensure => latest,
|
|
provider => openstack_pip,
|
|
require => Class['pip'],
|
|
}
|