Switch main bootstrap source repository to online one

In case of deploying Fuel Master node on a pre-provisioned
server, we should use online repositories instead of local
ones, to build the Ubuntu bootstrap.

Change-Id: If4a5d8d715740289e85f8004a5655b35c25c9c6b
Closes-Bug: #1570747
This commit is contained in:
Vitaly Parakhin 2016-04-15 17:34:58 +03:00
parent 9f61f216d4
commit a3f11fddb1
1 changed files with 5 additions and 0 deletions

View File

@ -369,6 +369,11 @@ if [ ! -f "${ASTUTE_YAML}" ]; then
fail
fi
# Replace local repository for building bootstrap with online one
# if we run deployment on a pre-provisioned server
[ ! -f /etc/fuel_build_id ] && \
sed -i "s|127.0.0.1:8080/ubuntu/x86_64|mirror.fuel-infra.org/mos-repos/ubuntu/${FUEL_RELEASE}|g" "${ASTUTE_YAML}"
# Enable sshd
systemctl enable sshd
systemctl start sshd