summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-03 15:29:20 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-03 15:29:20 -0200
commit40b3c1fcc78f6dc394fe27d0ffde25bb3d0bfd2d (patch)
treeac8a6ce058edc0725fff807900f1248db286ef39 /lib
parent2368d95999f9e2967feaed3ae87c429f1c4ed780 (diff)
downloadhydra-40b3c1fcc78f6dc394fe27d0ffde25bb3d0bfd2d.tar.gz
hydra-40b3c1fcc78f6dc394fe27d0ffde25bb3d0bfd2d.tar.bz2
Deploy: remote fixes
Diffstat (limited to 'lib')
-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"