From 862d6d2b7e7038df7ec19781dec919693f69e76e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 23 May 2018 16:38:52 -0300 Subject: Deploy: run hydra install to keep codebase synced --- share/hydra/deploy | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'share/hydra/deploy') 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 <