From 7774c69136235530010e8c4d0547eb45baa24c24 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 11 Jul 2017 10:49:28 -0400 Subject: [PATCH] Create fedora-26 mirror in openstack-infra Now that fedora-26 is released, lets start testing with it. Once fedora-25 has been removed, we can remove our mirrors too. Change-Id: Ib17cf66e21fb4feb35bd9b664bd606a8c191a573 Signed-off-by: Paul Belanger --- .../files/mirror/fedora-mirror-update.sh | 70 ++++++++++--------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/modules/openstack_project/files/mirror/fedora-mirror-update.sh b/modules/openstack_project/files/mirror/fedora-mirror-update.sh index 71cd8900bb..d918dffe8f 100644 --- a/modules/openstack_project/files/mirror/fedora-mirror-update.sh +++ b/modules/openstack_project/files/mirror/fedora-mirror-update.sh @@ -19,43 +19,45 @@ BASE="/afs/.openstack.org/mirror/fedora" MIRROR="rsync://mirrors.kernel.org" K5START="k5start -t -f /etc/fedora.keytab service/fedora-mirror -- timeout -k 2m 30m" -REPO=releases/25 -if ! [ -f $BASE/$REPO ]; then - $K5START mkdir -p $BASE/$REPO -fi +for REPO in releases/25 releases/26 ; do + if ! [ -f $BASE/$REPO ]; then + $K5START mkdir -p $BASE/$REPO + fi -date --iso-8601=ns -echo "Running rsync releases..." -$K5START rsync -rlptDvz \ - --delete \ - --delete-excluded \ - --exclude="CloudImages/x86_64/images/*.box" \ - --exclude="Docker" \ - --exclude="Everything/armhfp/" \ - --exclude="Everything/i386/" \ - --exclude="Everything/source/" \ - --exclude="Everything/x86_64/debug/" \ - --exclude="Server" \ - --exclude="Spins" \ - --exclude="Workstation" \ - $MIRROR/fedora/$REPO/ $BASE/$REPO/ + date --iso-8601=ns + echo "Running rsync releases..." + $K5START rsync -rlptDvz \ + --delete \ + --delete-excluded \ + --exclude="CloudImages/x86_64/images/*.box" \ + --exclude="Docker" \ + --exclude="Everything/armhfp/" \ + --exclude="Everything/i386/" \ + --exclude="Everything/source/" \ + --exclude="Everything/x86_64/debug/" \ + --exclude="Server" \ + --exclude="Spins" \ + --exclude="Workstation" \ + $MIRROR/fedora/$REPO/ $BASE/$REPO/ +done -REPO=updates/25 -if ! [ -f $BASE/$REPO ]; then - $K5START mkdir -p $BASE/$REPO -fi +for REPO in updates/25 updates/26 ; do + if ! [ -f $BASE/$REPO ]; then + $K5START mkdir -p $BASE/$REPO + fi -date --iso-8601=ns -echo "Running rsync updates..." -$K5START rsync -rlptDvz \ - --delete \ - --delete-excluded \ - --exclude="armhfp/" \ - --exclude="i386/" \ - --exclude="SRPMS/" \ - --exclude="x86_64/debug" \ - --exclude="x86_64/drpms" \ - $MIRROR/fedora/$REPO/ $BASE/$REPO/ + date --iso-8601=ns + echo "Running rsync updates..." + $K5START rsync -rlptDvz \ + --delete \ + --delete-excluded \ + --exclude="armhfp/" \ + --exclude="i386/" \ + --exclude="SRPMS/" \ + --exclude="x86_64/debug" \ + --exclude="x86_64/drpms" \ + $MIRROR/fedora/$REPO/ $BASE/$REPO/ +done # TODO(pabelanger): Validate rsync process