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:
parent
fd0cd560c7
commit
0a6c47d6cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue