Changeset View
Changeset View
Standalone View
Standalone View
bin/watch-vagrant-conf
Show All 12 Lines | |||||
ENVIRONMENTS="production staging" | ENVIRONMENTS="production staging" | ||||
for ex in ${EXCLUDES}; do | for ex in ${EXCLUDES}; do | ||||
EXCLUDES_PARAMS="${EXCLUDES_PARAMS} --exclude $ex" | EXCLUDES_PARAMS="${EXCLUDES_PARAMS} --exclude $ex" | ||||
done | done | ||||
function sync_puppet_conf { | function sync_puppet_conf { | ||||
branch=$1 | branch=$1 | ||||
rsync $RSYNC_PARAMS $EXCLUDES_PARAMS swh-site/manifests/ $TMPDIR/environments/${branch}/manifest/ | |||||
rsync $RSYNC_PARAMS $EXCLUDES_PARAMS swh-site/data/ $TMPDIR/environments/${branch}/data | rsync $RSYNC_PARAMS $EXCLUDES_PARAMS swh-site/data/ $TMPDIR/environments/${branch}/data | ||||
rsync $RSYNC_PARAMS $EXCLUDES_PARAMS swh-site/site-modules/ $TMPDIR/environments/${branch}/site-modules/ | rsync $RSYNC_PARAMS $EXCLUDES_PARAMS swh-site/site-modules/ $TMPDIR/environments/${branch}/site-modules/ | ||||
rsync $RSYNC_PARAMS $EXCLUDES_PARAMS private/swh-private-data-censored/ $TMPDIR/environments/${branch}/data/private | rsync $RSYNC_PARAMS $EXCLUDES_PARAMS private/swh-private-data-censored/ $TMPDIR/environments/${branch}/data/private | ||||
} | } | ||||
# Initial sync | # Initial sync | ||||
sync_puppet_conf | sync_puppet_conf | ||||
Show All 11 Lines |