Add vault stanza to levant services

This commit is contained in:
IamTheFij 2022-07-27 14:41:13 -07:00
parent e39fbc41a7
commit 547cd96e4c
1 changed files with 10 additions and 0 deletions

View File

@ -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 := . ]]