Add CentOS SIGs for CentOS Stream 9 to AFS mirrors

In CS9 the layout of the repos has changed and the SIGs repos are in a
separatee directory under centos-stream [1] so we need to add a new
rsync command. These repos includes messaging for rabbitmq-server, nfv
for openvswitch and storage for ceph.

[1] http://mirror.stream.centos.org/

Change-Id: I90890aade7ad5f42e15c4c171ed2c2545f2310c4
This commit is contained in:
Alfredo Moralejo 2022-02-02 10:10:56 +01:00
parent 4fa0243458
commit d6102c5405

View File

@ -41,7 +41,7 @@ K5START="k5start -t -f /etc/centos-stream.keytab service/centos-stream-mirror --
MIRROR=rsync://mirror.facebook.net/centos-stream/9-stream/ # somewhere in US
if ! [ -f ${BASE_STREAM}/9-stream ]; then
if ! [ -f ${BASE}/9-stream ]; then
$K5START mkdir -p ${BASE}/9-stream
fi
date --iso-8601=ns
@ -56,6 +56,31 @@ $K5START ${RSYNC} \
--exclude="ppc64le" \
$MIRROR ${BASE}/9-stream
#
# -- Centos 9-stream SIGs --
#
MIRROR=rsync://mirror.facebook.net/centos-stream/SIGs/9-stream/ # somewhere in US
if ! [ -f ${BASE}/SIGs/9-stream ]; then
$K5START mkdir -p ${BASE}/SIGs/9-stream
fi
date --iso-8601=ns
echo "Running Centos 9-stream SIGs rsync..."
$K5START ${RSYNC} \
--delete \
--delete-excluded \
--exclude="iso" \
--exclude="debug" \
--exclude="s390x" \
--exclude="source" \
--exclude="ppc64le" \
--exclude="hyperscale" \
--exclude="infra" \
--exclude="kmods" \
--exclude="virt" \
$MIRROR ${BASE}/SIGs/9-stream
if [[ ${DRY_RUN:-0} -ne 1 ]]; then
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
echo "rsync completed successfully, running vos release."