Make it possible to deploy a single node.
authorWard Vandewege <ward@curii.com>
Wed, 16 Dec 2020 19:19:50 +0000 (14:19 -0500)
committerWard Vandewege <ward@curii.com>
Wed, 16 Dec 2020 19:19:50 +0000 (14:19 -0500)
refs #16925

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

jenkins/run-deploy-salt.sh

index 37e9f4fb6d39d05e66d3cca828b5bab5b1aed228..2463d19ebae03b34f3f6f988c9af83d8bf9cd175 100755 (executable)
@@ -35,7 +35,7 @@ function usage {
     echo >&2
     echo >&2 "usage: $0 [options] <identifier>"
     echo >&2
-    echo >&2 "   <identifier>                 Arvados cluster name"
+    echo >&2 "   <identifier>                 Arvados cluster name or single node salt identifier"
     echo >&2
     echo >&2 "$0 options:"
     echo >&2 "  -d, --debug                   Enable debug output"
@@ -110,6 +110,11 @@ fi
 
 run_salt "*$IDENTIFIER" '' 'apt update && DEBIAN_FRONTEND=noninteractive apt -y upgrade'
 
+if [[ "$IDENTIFIER" =~ \. ]]; then
+  title "Single node deploy requested, done"
+  exit 0
+fi
+
 title "Loading ARVADOS_API_HOST and ARVADOS_API_TOKEN"
 if [[ -f "$HOME/.config/arvados/$IDENTIFIER.arvadosapi.com.conf" ]]; then
   . $HOME/.config/arvados/$IDENTIFIER.arvadosapi.com.conf