]> gitweb.fluxo.info Git - hydra.git/commitdiff
Handles localhost at hydra install
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 15:48:08 +0000 (13:48 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 15:48:08 +0000 (13:48 -0200)
share/hydra/install

index 27d5aea1191299549baf90a60ef0755cb759c5c5..cfa480c1ee95cbe8eeee761430ad99129ff5043c 100755 (executable)
@@ -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/