aboutsummaryrefslogtreecommitdiff
path: root/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env.sh')
-rw-r--r--env.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/env.sh b/env.sh
new file mode 100644
index 0000000..80812d4
--- /dev/null
+++ b/env.sh
@@ -0,0 +1,7 @@
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+YEAR=$(date +%Y)
+
+export NOMAD_ADDR=https://localhost:14646
+export NOMAD_CACERT=$SCRIPT_DIR/secrets/pki/nomad-ca.crt
+export NOMAD_CLIENT_CERT=$SCRIPT_DIR/secrets/pki/nomad$YEAR-client.crt
+export NOMAD_CLIENT_KEY=$SCRIPT_DIR/secrets/pki/nomad$YEAR-client.key