From 457f4eeefe685f0c6ef49de4821f5f82b7e5dacc Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Wed, 29 Oct 2014 22:27:05 +0100 Subject: [PATCH] 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 --- nodepool/scripts/configure_mirror.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodepool/scripts/configure_mirror.sh b/nodepool/scripts/configure_mirror.sh index aaf7eee5e7..0d4a64faba 100755 --- a/nodepool/scripts/configure_mirror.sh +++ b/nodepool/scripts/configure_mirror.sh @@ -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 </home/jenkins/.pydistutils.cfg <