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