Add vault stanza to levant services
This commit is contained in:
parent
e39fbc41a7
commit
547cd96e4c
@ -17,6 +17,7 @@
|
|||||||
# healthcheck = "/"
|
# healthcheck = "/"
|
||||||
# mysql = bool
|
# mysql = bool
|
||||||
# redis = bool
|
# redis = bool
|
||||||
|
# vault = bool
|
||||||
job "[[.name]]" {
|
job "[[.name]]" {
|
||||||
region = "global"
|
region = "global"
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
@ -121,6 +122,15 @@ job "[[.name]]" {
|
|||||||
[[ end ]]
|
[[ end ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ if default false .vault -]]
|
||||||
|
vault {
|
||||||
|
policies = [
|
||||||
|
"access-tables",
|
||||||
|
"nomad-task",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
[[ end -]]
|
||||||
|
|
||||||
[[ with .env -]]
|
[[ with .env -]]
|
||||||
env = {
|
env = {
|
||||||
[[- range $k, $v := . ]]
|
[[- range $k, $v := . ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user