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)
(cherry picked from commit bd7b0fea1f)
This commit is contained in:
Takashi Kajinami
2021-09-03 23:13:01 +09:00
parent a154f48943
commit 157b94bd45

View File

@@ -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