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
This commit is contained in:
Mohammed Naser 2017-08-08 09:21:13 -04:00
parent 9df54186a5
commit 856a39488a
No known key found for this signature in database
GPG Key ID: 481CBC90384AEC42

View File

@ -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