Use local mirror to pull CentOS packages
The delorean-deps.repo file includes repositories hosted by CentOS mirror. We should replace repository url to use local mirror instead of external one in CI. Change-Id: I940e48f6037e5bf3147f7f8e2fc9663947ce0de2 (cherry picked from commit0d76f354d5) (cherry picked from commitbd7b0fea1f)
This commit is contained in:
@@ -75,6 +75,7 @@ curl -o /tmp/delorean.repo "${NODEPOOL_RDO_PROXY}/centos8-victoria/puppet-passed
|
||||
sed -i -e "s|https://trunk.rdoproject.org|${NODEPOOL_RDO_PROXY}|g" /tmp/delorean.repo
|
||||
curl -o /tmp/delorean-deps.repo "${NODEPOOL_RDO_PROXY}/centos8-victoria/delorean-deps.repo"
|
||||
sed -i -e "s|https://trunk.rdoproject.org|${NODEPOOL_RDO_PROXY}|g" /tmp/delorean-deps.repo
|
||||
sed -i -e "s|http://mirror.centos.org|${CENTOS_MIRROR_HOST}|g" /tmp/delorean-deps.repo
|
||||
|
||||
export FACTER_nodepool_mirror_host=$NODEPOOL_MIRROR_HOST
|
||||
export FACTER_centos_mirror_host=$CENTOS_MIRROR_HOST
|
||||
|
||||
Reference in New Issue
Block a user