aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/deploy
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-23 16:38:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-23 16:38:52 -0300
commit862d6d2b7e7038df7ec19781dec919693f69e76e (patch)
treefbebb88434df0b6974c85628a2017bf819eba88c /share/hydra/deploy
parent906b6cabbcd5d507ac96cc79e62d394d5e5011e1 (diff)
downloadhydra-862d6d2b7e7038df7ec19781dec919693f69e76e.tar.gz
hydra-862d6d2b7e7038df7ec19781dec919693f69e76e.tar.bz2
Deploy: run hydra install to keep codebase synced
Diffstat (limited to 'share/hydra/deploy')
-rwxr-xr-xshare/hydra/deploy11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 093b723..32dc700 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -66,6 +66,10 @@ for node in $NODES; do
# Create folders
hydra_deploy_mkdirs
+ # Ensure we have a compatible hydra suite
+ #hydra $HYDRA install $node
+ DESTDIR="$FOLDER" hydractl install
+
# Sync repository to server
echo "Syncing configuration..."
$DEPLOY_RSYNC "$RSYNC_PATH" $DEPLOY_OPTS
@@ -100,6 +104,10 @@ for node in $NODES; do
$SUDO apt-get install $DEPLOY_DEPENDENCIES -y
fi
+ # Ensure we have a compatible hydra suite
+ #hydra $HYDRA install $node
+ hydractl install
+
# Collect facts
hydra_deploy_facts_collect local
@@ -124,6 +132,9 @@ for node in $NODES; do
continue
fi
+ # Ensure we have a compatible hydra suite
+ hydra $HYDRA install $node
+
# Check remote environment
$HYDRA_CONNECT $FQDN <<EOF
##### BEGIN REMOTE SCRIPT #####