From 856a39488ac4da0a9494936d2b8189cf107fe7b2 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Tue, 8 Aug 2017 09:21:13 -0400 Subject: [PATCH] Add Fedora Atomic mirrors The Magnum projects needs Fedora Atomic images in order to be able to run tests. This patch adds Fedora Atomic images to be mirrored, excluding any other extra items which are unnecessary. Change-Id: I9f730b907f920cd3be16cdb662685a673044caa1 --- .../files/mirror/fedora-mirror-update.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/openstack_project/files/mirror/fedora-mirror-update.sh b/modules/openstack_project/files/mirror/fedora-mirror-update.sh index d918dffe8f..e2a68d3a7e 100644 --- a/modules/openstack_project/files/mirror/fedora-mirror-update.sh +++ b/modules/openstack_project/files/mirror/fedora-mirror-update.sh @@ -59,6 +59,21 @@ for REPO in updates/25 updates/26 ; do $MIRROR/fedora/$REPO/ $BASE/$REPO/ done +if ! [ -f $BASE/atomic ]; then + $K5START mkdir -p $BASE/atomic +fi + +echo "Running rsync atomic..." +date --iso-8601=ns +$K5START rsync -rlptDvz \ + --delete \ + --delete-excluded \ + --exclude="testing/" \ + --exclude="Atomic/" \ + --exclude="CloudImages/x86_64/images/*.raw.xz" \ + --exclude="CloudImages/x86_64/images/*.box" \ + $MIRROR/fedora-alt/atomic/ $BASE/atomic/ + # TODO(pabelanger): Validate rsync process date --iso-8601=ns | $K5START tee $BASE/timestamp.txt