Allow to use custom mirror

The current configure_mirror.sh expects no-one
want to use other than openstack.org pypi mirrors.

Having the configure_mirror.sh to use a costum,
NODEPOOL_PYPI_MIRROR instead of NODEPOOL_REGION when defined.

It allows averyone to use his local pypi mirror, with his
nodepool.

Change-Id: I6f0bd3372be09ccf423caacff83e615038c96ec5
This commit is contained in:
Attila Fazekas 2014-10-29 22:27:05 +01:00
parent 5955b11544
commit 457f4eeefe

View File

@ -18,12 +18,14 @@
source /etc/nodepool/provider
NODEPOOL_PYPI_MIRROR=${NODEPOOL_PYPI_MIRROR:-http://pypi.$NODEPOOL_REGION.openstack.org/simple}
cat >/home/jenkins/.pip/pip.conf <<EOF
[global]
index-url = http://pypi.$NODEPOOL_REGION.openstack.org/simple
index-url = $NODEPOOL_PYPI_MIRROR
EOF
cat >/home/jenkins/.pydistutils.cfg <<EOF
[easy_install]
index_url = http://pypi.$NODEPOOL_REGION.openstack.org/simple
index_url = $NODEPOOL_PYPI_MIRROR
EOF