summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-24 12:56:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-24 12:56:03 -0300
commite30a586d269c3f1b90d04b5c73d0a3407bf22291 (patch)
tree707bdea1b8f142ff03c55d88d9c92a2ad59f5406 /share
parent22a5da3bb6931d28ad47acb52ff28e0246e3364a (diff)
downloadhydra-e30a586d269c3f1b90d04b5c73d0a3407bf22291.tar.gz
hydra-e30a586d269c3f1b90d04b5c73d0a3407bf22291.tar.bz2
Deploy: error handling
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/deploy8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index f491e70..e55e545 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -102,7 +102,7 @@ for node in $NODES; do
hydra_deploy_setup remote $node
# Check if puppet is installed
- $HYDRA_CONNECT $node <<EOF
+ $HYDRA_CONNECT $FQDN <<EOF
##### BEGIN REMOTE SCRIPT #####
if ! which puppet &> /dev/null; then
echo "Installing dependencies..."
@@ -112,6 +112,12 @@ for node in $NODES; do
##### END REMOTE SCRIPT #######
EOF
+ # Check connection
+ if [ "$?" != "0" ]; then
+ echo "Error connecting or setting up $FQDN."
+ exit 1
+ fi
+
# Create folders
hydra_deploy_mkdirs