Merge "Use fastest Linux mirrors for gate jobs"
This commit is contained in:
@@ -65,19 +65,40 @@ iptables -P OUTPUT ACCEPT
|
||||
if [ -f /etc/nodepool/provider -a -s /etc/nodepool/provider ]; then
|
||||
source /etc/nodepool/provider
|
||||
|
||||
if [[ ${NODEPOOL_PROVIDER} == "rax"* ]]; then
|
||||
|
||||
# Set the Ubuntu Repository for the AIO to the RAX Mirror
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_repo=http://mirror.rackspace.com/ubuntu"
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_security_repo=http://mirror.rackspace.com/ubuntu"
|
||||
|
||||
elif [[ ${NODEPOOL_PROVIDER} == "hpcloud"* ]]; then
|
||||
|
||||
# Set the Ubuntu Repository for the AIO to the HP Cloud Mirror
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_repo=http://${NODEPOOL_AZ}.clouds.archive.ubuntu.com/ubuntu"
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_security_repo=http://${NODEPOOL_AZ}.clouds.archive.ubuntu.com/ubuntu"
|
||||
# Get the fastest possible Linux mirror depending on the datacenter where the
|
||||
# tests are running.
|
||||
case ${NODEPOOL_PROVIDER} in
|
||||
"rax-dfw"*)
|
||||
export UBUNTU_REPO="http://dfw.mirror.rackspace.com/ubuntu"
|
||||
;;
|
||||
"rax-ord"*)
|
||||
export UBUNTU_REPO="http://ord.mirror.rackspace.com/ubuntu"
|
||||
;;
|
||||
"rax-iad"*)
|
||||
export UBUNTU_REPO="http://iad.mirror.rackspace.com/ubuntu"
|
||||
;;
|
||||
"hpcloud"*)
|
||||
export UBUNTU_REPO="http://${NODEPOOL_AZ}.clouds.archive.ubuntu.com/ubuntu"
|
||||
;;
|
||||
"ovh-gra1"*)
|
||||
export UBUNTU_REPO="http://ubuntu.mirrors.ovh.net/ubuntu"
|
||||
;;
|
||||
"ovh-bhs1"*)
|
||||
export UBUNTU_REPO="http://ubuntu.bhs.mirrors.ovh.net/ubuntu"
|
||||
;;
|
||||
"bluebox-sjc1"*)
|
||||
export UBUNTU_REPO="http://ord.mirror.rackspace.com/ubuntu"
|
||||
;;
|
||||
"internap-nyj01"*)
|
||||
export UBUNTU_REPO="http://iad.mirror.rackspace.com/ubuntu"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${UBUNTU_REPO:-}" ]; then
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_repo=${UBUNTU_REPO}"
|
||||
export BOOTSTRAP_OPTS="${BOOTSTRAP_OPTS} bootstrap_host_ubuntu_security_repo=${UBUNTU_REPO}"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Bootstrap an AIO
|
||||
|
||||
Reference in New Issue
Block a user