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 commit 0d76f354d5)
This commit is contained in:
@@ -65,6 +65,7 @@ curl -o /tmp/delorean.repo "${NODEPOOL_RDO_PROXY}/centos8-wallaby/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-wallaby/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