Move nomad var secrets to secrets.enc.json
This commit is contained in:
@@ -45,7 +45,7 @@ job "pgbackup" {
|
||||
|
||||
template {
|
||||
data = <<EOF
|
||||
localhost:5432:*:postgres:{{ with nomadVar "nomad/jobs/postgres" }}{{ .postgress_password }}{{ end }}
|
||||
localhost:5432:*:postgres:{{ with nomadVar "nomad/jobs/postgres" }}{{ .postgres_password }}{{ end }}
|
||||
EOF
|
||||
destination = "/secrets/postgres_password"
|
||||
perms = "0400"
|
||||
|
||||
Reference in New Issue
Block a user