From d59e6549365a8dad5760cb6c6ad2805019da37c8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 25 Sep 2019 09:59:56 +1000 Subject: [PATCH] Add CentOS 8 mirror This adds mirroring of CentOS 8. It is somewhat simpler because the architecture we're interested in are in the base repos, no need for altarch. The current mirror doesn't have a 8/ directory; possibly they require their own mirroring filter updates? Use an up-to-date mirror for 8 (we can switch 7 too, but leaving alone for now). Additionally, the altarch mirror we are using appears to have gone offline for at least a few days. Switch to another one that is in Texas, which should be close-ish to the DFW servers. Change-Id: I33d95fa6b2df23fbfdb6745a3079761e228f677b --- .../mirror-update/files/centos-mirror-update | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/mirror-update/files/centos-mirror-update b/playbooks/roles/mirror-update/files/centos-mirror-update index eb363ca3d2..95e0919f9a 100755 --- a/playbooks/roles/mirror-update/files/centos-mirror-update +++ b/playbooks/roles/mirror-update/files/centos-mirror-update @@ -23,10 +23,31 @@ else fi BASE="/afs/.openstack.org/mirror/centos" -MIRROR="rsync://mirror.lstn.net/centos" -MIRROR_ALTARCH="rsync://dallas.tx.mirror.xygenhosting.com/centos-altarch/" K5START="k5start -t -f /etc/centos.keytab service/centos-mirror -- $TIMEOUT" +# +# -- Centos 8 -- +# + +MIRROR=rsync://mirror.hackingand.coffee/centos/8/ # somewhere in TX + +if ! [ -f $BASE/8 ]; then + $K5START mkdir -p $BASE/8 +fi +date --iso-8601=ns +echo "Running Centos 8 rsync..." +$K5START rsync -rptDvz \ + --delete \ + --delete-excluded \ + --exclude="isos" \ + $MIRROR $BASE/8 + +# +# -- Centos 7 -- +# + +MIRROR="rsync://mirror.lstn.net/centos" +MIRROR_ALTARCH="rsync://mirror.dal.nexril.net/centos-altarch/" REPOS="7 altarch/7" ALTARCHS="aarch64 ppc64le" ALTARCHS_IGNORED="armhfp i386 power9 ppc64 x86_64" # altarch/kernel/ has x86_64 dir we do not want