From afe99356bfba6d9ef4654dd34ecf0eb652eb4570 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 10 Dec 2020 15:46:55 +0000 Subject: [PATCH] Enable mirroring of centos 8-stream Change-Id: Ie289a25adddd761ea3c62e00288c4542f4f4ff90 --- .../mirror-update/files/centos-mirror-update | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/playbooks/roles/mirror-update/files/centos-mirror-update b/playbooks/roles/mirror-update/files/centos-mirror-update index a237316324..452d90c301 100755 --- a/playbooks/roles/mirror-update/files/centos-mirror-update +++ b/playbooks/roles/mirror-update/files/centos-mirror-update @@ -27,6 +27,23 @@ fi BASE="/afs/.openstack.org/mirror/centos" K5START="k5start -t -f /etc/centos.keytab service/centos-mirror -- $TIMEOUT" +# +# -- Centos 8-stream -- +# + +MIRROR=rsync://mirror.dal10.us.leaseweb.net/centos/8-stream/ # somewhere in TX + +if ! [ -f $BASE/8-stream ]; then + $K5START mkdir -p $BASE/8-stream +fi +date --iso-8601=ns +echo "Running Centos 8-stream rsync..." +$K5START rsync -rltvz \ + --delete \ + --delete-excluded \ + --exclude="isos" \ + $MIRROR $BASE/8-stream + # # -- Centos 8 -- #