diff --git a/validation/README.md b/validation/README.md index 71edd2b..06b23f1 100644 --- a/validation/README.md +++ b/validation/README.md @@ -21,6 +21,9 @@ sudo ./start-nomad.sh Basically this command create a `nomad_temp` folder, run a server and a client, and mount `nomad_temp/scratchdir` as a `local` volume , so all pipelines can/must use it as working dir +Use `--secure` argument if you want to create a secured cluster. The script will bootstrap an ACL and a NOMAD_TOKEN +will be generated (see the output of the script) + ## Run pipelines examples open another terminal and execute: diff --git a/validation/start-nomad.sh b/validation/start-nomad.sh index 54b4e01..215506f 100755 --- a/validation/start-nomad.sh +++ b/validation/start-nomad.sh @@ -1,8 +1,11 @@ #!/bin/bash -set -uex +set -ue -export NOMAD_VERSION="1.8.1" -export NOMAD_PLATFORM="linux_amd64" +NOMAD_VERSION="1.8.1" +NOMAD_PLATFORM="linux_amd64" + +SECURE=0 +[[ "$@" =~ '--secure' ]] && SECURE=1 if [ ! -f ./nomad ]; then curl -O "https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_${NOMAD_PLATFORM}.zip" @@ -23,6 +26,14 @@ cat >server-custom.conf <>server-custom.conf <client-custom.conf <