Fix vault.root
This commit is contained in:
parent
642f0f594a
commit
5fe27c1c3b
|
@ -108,6 +108,8 @@ job "postgres-manage" {
|
|||
LDAP2PG_MODE = "dry"
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -155,6 +155,8 @@ job "postgres" {
|
|||
change_mode = "noop"
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -37,6 +37,8 @@ job "postgres-upgrade" {
|
|||
PG_DO_UPGRADE = false
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -3,7 +3,7 @@ scope: [[ .instance ]]
|
|||
|
||||
consul:
|
||||
url: http://{{ sockaddr "GetInterfaceIP \"nomad\"" }}:8500
|
||||
token: {{ with secret "[[ .consul.kv.root ]]consul/creds/[[ .instance ]]" }}{{ .Data.token }}{{ end }}
|
||||
token: {{ with secret "[[ .vault.root ]]consul/creds/[[ .instance ]]" }}{{ .Data.token }}{{ end }}
|
||||
|
||||
bootstrap:
|
||||
dcs:
|
||||
|
|
Loading…
Reference in New Issue