Fix vault.root

This commit is contained in:
Daniel Berteaud 2024-03-20 11:43:16 +01:00
parent 642f0f594a
commit 5fe27c1c3b
4 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: