summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
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