From 547cd96e4cab2ff89c6e4ba2f42952aa166e8744 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 27 Jul 2022 14:41:13 -0700 Subject: [PATCH] Add vault stanza to levant services --- nomad/service.nomad | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nomad/service.nomad b/nomad/service.nomad index 5d1018f..c589eba 100644 --- a/nomad/service.nomad +++ b/nomad/service.nomad @@ -17,6 +17,7 @@ # healthcheck = "/" # mysql = bool # redis = bool +# vault = bool job "[[.name]]" { region = "global" datacenters = ["dc1"] @@ -121,6 +122,15 @@ job "[[.name]]" { [[ end ]] } + [[ if default false .vault -]] + vault { + policies = [ + "access-tables", + "nomad-task", + ] + } + [[ end -]] + [[ with .env -]] env = { [[- range $k, $v := . ]]