summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-20 13:48:08 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-20 13:48:08 -0200
commiteba6e478c205a75bca8c02d06fb2ad64edc4ea71 (patch)
tree127745ffe154edbe70434134a74edcdd838d4e6d
parent9d01bc8e730335d90d06d3c22b2fb2588bc64fdd (diff)
downloadhydra-eba6e478c205a75bca8c02d06fb2ad64edc4ea71.tar.gz
hydra-eba6e478c205a75bca8c02d06fb2ad64edc4ea71.tar.bz2
Handles localhost at hydra install
-rwxr-xr-xshare/hydra/install6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/hydra/install b/share/hydra/install
index 27d5aea..cfa480c 100755
--- a/share/hydra/install
+++ b/share/hydra/install
@@ -45,6 +45,12 @@ fi
for node in $NODES; do
echo "Installing to $node..."
+ # Handles localhost
+ if [ "$node" == "localhost" ] || [ "$node" == "`facter fqdn`" ] || [ "$node" == "`facter hostname`" ]; then
+ $APP_BASE/hydractl install localhost
+ continue
+ fi
+
# Rsync version
rsync -rltDv --no-perms --delete --rsync-path "sudo rsync" $APP_BASE/ $node:/usr/local/share/hydra/