Merge "Allow to use custom mirror"
This commit is contained in:
commit
515dcc1633
@ -18,14 +18,16 @@
|
|||||||
|
|
||||||
source /etc/nodepool/provider
|
source /etc/nodepool/provider
|
||||||
|
|
||||||
|
NODEPOOL_PYPI_MIRROR=${NODEPOOL_PYPI_MIRROR:-http://pypi.$NODEPOOL_REGION.openstack.org/simple}
|
||||||
|
|
||||||
cat >/home/jenkins/.pip/pip.conf <<EOF
|
cat >/home/jenkins/.pip/pip.conf <<EOF
|
||||||
[global]
|
[global]
|
||||||
index-url = http://pypi.$NODEPOOL_REGION.openstack.org/simple
|
index-url = $NODEPOOL_PYPI_MIRROR
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat >/home/jenkins/.pydistutils.cfg <<EOF
|
cat >/home/jenkins/.pydistutils.cfg <<EOF
|
||||||
[easy_install]
|
[easy_install]
|
||||||
index_url = http://pypi.$NODEPOOL_REGION.openstack.org/simple
|
index_url = $NODEPOOL_PYPI_MIRROR
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Double check that when the node is made ready it is able
|
# Double check that when the node is made ready it is able
|
||||||
|
Loading…
Reference in New Issue
Block a user