Commit fb900346 authored by Ricardo Araujo's avatar Ricardo Araujo
Browse files

Use ubuntu and pip mirrors and keep local.conf

parent 3cadd744
......@@ -243,7 +243,30 @@
export DEVSTACK_LOCAL_CONFIG=""
export NODEPOOL_MIRROR_HOST="nova.clouds.archive.ubuntu.com"
echo "NODEPOOL_MIRROR_HOST=\"nova.clouds.archive.ubuntu.com\"" >> /etc/nodepool/provider
export KEEP_LOCALRC=1
set +x
mkdir -p ~/.pip \
&& echo [global] >> ~/.pip/pip.conf \
&& echo index-url = http://10.11.4.24/root/pypi/+simple >> ~/.pip/pip.conf \
&& echo extra-index-url = http://10.11.4.24:3141/root/pypi/+simple >> ~/.pip/pip.conf \
&& echo [install] >> ~/.pip/pip.conf \
&& echo trusted-host = 10.11.4.24 >> ~/.pip/pip.conf
PIP_MIRROR_CONF="\
[global]
index-url = https://pypi.python.org/simple
extra-index-url = http://10.11.4.24:3141/root/pypi/+simple
[install]
trusted-host = 10.11.4.24"
echo "$PIP_MIRROR_CONF" >/tmp/pip.conf
sudo mv /tmp/pip.conf /etc/
sudo chown root:root /etc/pip.conf
sudo chmod 0644 /etc/pip.conf
set -x
# Tells devstack that we're going to use real hardware
if [ "{ironic-is-hardware}" == "1" ] ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment