From 210a048b5e2ef81cf28ce930826564432b0a74f8 Mon Sep 17 00:00:00 2001 From: Jan-Eric Hellenberg Date: Tue, 27 Jul 2021 16:41:23 +0200 Subject: [PATCH] Update api.tpl.nomad to allow configuring TLS to Nomad through gitlab --- deploy/api.tpl.nomad | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy/api.tpl.nomad b/deploy/api.tpl.nomad index a9c145b..f7407bd 100644 --- a/deploy/api.tpl.nomad +++ b/deploy/api.tpl.nomad @@ -61,10 +61,18 @@ job "${NOMAD_SLUG}" { image = "${IMAGE_NAME_ENV}" } + template { + source = "${NOMAD_CACERT}" + destination = "/home/api/nomad-ca.crt" + change_mode = "noop" + } + env { POSEIDON_SERVER_ADDRESS = "${POSEIDON_LISTEN_ADDRESS}" POSEIDON_NOMAD_ADDRESS = "${NOMAD_SERVER_HOST}" POSEIDON_NOMAD_NAMESPACE = "${NOMAD_NAMESPACE}" + POSEIDON_NOMAD_TLS_ACTIVE = "${NOMAD_TLS_ACTIVE}" + POSEIDON_NOMAD_TLS_CAFILE = "nomad-ca.crt" } resources {