summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hydra/deploy6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index 4e86488..ed658a4 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -10,15 +10,15 @@ function hydra_deploy_setup {
COPY_PATH=""
if [ "$1" == "remote" ]; then
- # Deploy in a local folder
+ # Deploy in a remote host
if [ ! -z "$2" ]; then
NODE="$2"
DEPLOY_BASE="/etc"
DEPLOY_COMMAND="$HYDRA_CONNECT $NODE sudo"
+ FQDN="`$DEPLOY_COMMAND cat /etc/hostname`"
DEPLOY_OPTS="$HYDRA_FOLDER/puppet/ $NODE:/etc/puppet/"
DEPLOY_DEST="$FQDN:"
RSYNC_PATH="sudo rsync"
- FQDN="`$DEPLOY_COMMAND cat /etc/hostname`"
COPY_PATH="$RSYNC_PATH"
hydra_deploy_set_manifest
else
@@ -26,7 +26,7 @@ function hydra_deploy_setup {
exit 1
fi
elif [ "$1" == "folder" ]; then
- # Deploy in a remote host
+ # Deploy in a local folder
if [ ! -z "$2" ]; then
FOLDER="$2"
DEPLOY_BASE="/etc"