]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
mirror to dc1+dc2 too
authorHolger Levsen <holger@layer-acht.org>
Fri, 14 Sep 2012 15:11:01 +0000 (17:11 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 14 Sep 2012 15:11:01 +0000 (17:11 +0200)
liveboot_build.sh

index 3652ada6c30c46320790afb82974808703da33cc..52dd6704894ec0de38237deeaa2d823d43b374b7 100755 (executable)
@@ -23,7 +23,8 @@ RSYNC_DST2="liveboot@10.251.1.1/liveboot/"
 RSYNC_DST3="liveboot@10.254.1.1/liveboot/"
 # staging (mgmt9)
 RSYNC_DST4="liveboot@10.252.1.1/liveboot/"
-# TODO: DC1 + DC2
+# dc1+2 (mgmt1)
+RSYNC_DST5="liveboot@10.1.1.1/liveboot/"
 
 BUILD_SCRIPT=$(mktemp)
 cat > $BUILD_SCRIPT <<-EOF
@@ -76,11 +77,9 @@ figlet "mirror to pbb OK"
 echo "Now rsyncing results to $RSYNC_DST4 ..."
 rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST4
 figlet "mirror to staging OK"
-
-echo "mirror to DCs is MISSING"
-
+echo "Now rsyncing results to $RSYNC_DST5 ..."
+rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST5
+figlet "mirror to DC1+2 OK"
 
 du -sh /srv/mirror/liveboot
-
 figlet "OK"
-