18870: Use correct default vm hostname
[arvados.git] / tools / salt-install / installer.sh
index f4934aa2f86fdaae02eda51b4095d0f65500331e..534ee629c722243f1a1ff011905a7326bfa0fd72 100755 (executable)
@@ -6,6 +6,8 @@
 
 set -e
 
+declare -A NODES
+
 sync() {
     if test "$NODE" != localhost ; then
        if ! ssh $NODE test -d arvados-setup ; then
@@ -127,14 +129,16 @@ case "$subcmd" in
            apt-get install arvados-client
        fi
 
-       export ARVADOS_API_HOST="${CONTROLLER_INT_IP}"
+       export ARVADOS_API_HOST="${CLUSTER}.${DOMAIN}"
        export ARVADOS_API_TOKEN="$SYSTEM_ROOT_TOKEN"
 
        arvados-client diagnostics -internal-client
+       ;;
     *)
        echo "Arvados installer"
        echo ""
        echo "initialize   initialize the setup directory for configuration"
        echo "deploy       deploy the configuration from the setup directory"
+       echo "diagnostics  check your install using diagnostics"
        ;;
 esac