]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
mirror to staging too
authorHolger Levsen <holger@layer-acht.org>
Fri, 7 Sep 2012 08:57:56 +0000 (10:57 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 7 Sep 2012 08:57:56 +0000 (10:57 +0200)
liveboot_build.sh

index 5014b206562fcda1232c7b02bf20855f7ea54959..289c58c781b341f97433c2605a01bab522158d66 100755 (executable)
@@ -17,22 +17,6 @@ export PB_SUITE=production-proposed-updates
 RSYNC_SRC=/srv/mirror/liveboot
 RSYNC_FILTER=''
 
-#
-# Overwrite settings depending on profile used
-# - i.e. not enough space in PBB to contain all images
-#
-#case $LIVE_TYPE in
-#    default|staging)
-#        RSYNC_SRC="$RSYNC_BASE/"
-#        RSYNC_DST="liveboot@10.1.1.1/livebuild/"       # mgmt1 will transfer this further, see mgmt1:/etc/rsyncd.conf
-#        RSYNC_FILTER='--include=default-** --include=staging-** --exclude=*'
-#        ;;
-#    pbb|pre-staging)
-#        RSYNC_SRC="$BUILD_TARGET/"
-#        RSYNC_DST="liveboot@10.254.1.1/livebuild/"
-#        RSYNC_FILTER=''
-#        ;;
-#esac
 
 # WORK IN PROGRESS
 
@@ -40,6 +24,8 @@ RSYNC_FILTER=''
 RSYNC_DST1="liveboot@riserver/liveboot/" 
 # pbb
 RSYNC_DST2="liveboot@10.254.1.1/liveboot/"
+# staging
+RSYNC_DST3="liveboot@10.252.1.1/liveboot/"
 
 figlet "still work in progress, but... getting there"
 
@@ -72,9 +58,14 @@ echo
 echo "Now rsyncing results to $RSYNC_DST1 ..."
 rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST1 
 figlet "mirror to r+i OK"
-echo "Now rsyncing results to $RSYNC_DST1 ..."
+echo "Now rsyncing results to $RSYNC_DST2 ..."
 rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST2 
 figlet "mirror to pbb OK"
+echo "Now rsyncing results to $RSYNC_DST3 ..."
+rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST3
+figlet "mirror to staging OK"
+
+echo "mirror to DCs is MISSING"
 
 #
 # cleanup /srv/mirror, keep MAX number of images