From 16bf2c0a4e44ddebc1be19de1f6138e8d5718ff7 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Thu, 30 Sep 2021 13:51:49 -0400 Subject: [PATCH] Add in support for mirroring centos-stream to the RDU-CC mirror. This will allow CBS and CI to use Stream-9 better Signed-off-by: Stephen Smoogen --- files/download/sync-up-downloads.sh.cc-rdu01 | 4 ++++ roles/rsyncd/templates/rsyncd.conf.download.j2 | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/files/download/sync-up-downloads.sh.cc-rdu01 b/files/download/sync-up-downloads.sh.cc-rdu01 index 419f9a999f..f628e435f2 100755 --- a/files/download/sync-up-downloads.sh.cc-rdu01 +++ b/files/download/sync-up-downloads.sh.cc-rdu01 @@ -41,6 +41,10 @@ if [[ $? -ne 0 ]]; then echo "Unable to finish sync to CentOS-altarch" fi +${RSYNC} ${RS_OPT} ${RS_DEADLY} rsync.stream.centos.org::CentOS-Stream-All/ /srv/pub/centos-stream/ | tail -n2 | logger -p local0.notice -t rsync_centos_stream +if [[ $? -ne 0 ]]; then + echo "Unable to finish sync to CentOS-stream" +fi # Let MM know I'm all up to date #/usr/bin/report_mirror diff --git a/roles/rsyncd/templates/rsyncd.conf.download.j2 b/roles/rsyncd/templates/rsyncd.conf.download.j2 index 4af35b9cfb..80aed9e557 100644 --- a/roles/rsyncd/templates/rsyncd.conf.download.j2 +++ b/roles/rsyncd/templates/rsyncd.conf.download.j2 @@ -169,6 +169,18 @@ refuse options = checksum comment = CentOS Mirror path = /srv/pub/centos list = no + +# For RDU-CC usage +[centos-altarch] + comment = CentOS Mirror Altarch + path = /srv/pub/centos-altarch + list = no + +# For RDU-CC usage +[centos-stream] + comment = CentOS Mirror Stream9 + path = /srv/pub/centos-stream + list = no {% endif %}