Add support for debian packages caching server

If APT_CACHE_SERVER variable is set then add option with it to config.
Example: APT_CACHE_SERVER="http://some_cache_server:3142"

Change-Id: Ic6d723d2715ab0be60a42f324b97d8ee02a1d97e
This commit is contained in:
Artur Zarzycki 2016-11-03 17:15:33 +01:00
parent fd0cd560c7
commit 0a6c47d6cf
2 changed files with 15 additions and 0 deletions

View File

@ -95,6 +95,20 @@ if [ `kubectl get nodes | grep node | wc -l` -lt $(($NUMBER_OF_ENVS * 3)) ]; the
fi
if [ -n "${APT_CACHE_SERVER}" ]; then
cat >>"${CONFIG_DIR}"/ccp-configs-common.yaml << EOF
url:
debian: ${APT_CACHE_SERVER}/debian
security: ${APT_CACHE_SERVER}/security
ceph:
debian:
repo: ${APT_CACHE_SERVER}/ceph
mariadb:
debian:
repo: ${APT_CACHE_SERVER}/mariadb
EOF
fi
# Fetch CCP repos
CCP="ccp --verbose --debug --config-file ${CONFIG_DIR}/ccp-cli-${VERSION}-config-1.yaml"
${CCP} fetch

View File

@ -42,6 +42,7 @@ commands = python setup.py build_sphinx
commands = oslo_debug_helper {posargs}
[testenv:multi-deploy]
passenv = APT_CACHE_SERVER
commands =
bash -ex "{toxinidir}/tools/ccp-multi-deploy/ccp-multi-deploy.sh" {posargs}