File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
infra/eu-west-2/core-nomad Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,11 @@ resource "nomad_variable" "influxdb" {
6363}
6464
6565resource "nomad_job" "influxdb" {
66- depends_on = [nomad_csi_volume_registration . influxdb ]
67- jobspec = file (" ${ path . module } /../../../shared/nomad/jobs/influxdb.nomad.hcl" )
66+ depends_on = [
67+ nomad_csi_volume_registration . influxdb ,
68+ nomad_variable . influxdb
69+ ]
70+ jobspec = file (" ${ path . module } /../../../shared/nomad/jobs/influxdb.nomad.hcl" )
6871
6972 hcl2 {
7073 vars = {
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ job "influxdb" {
7373 template {
7474 data = << EOF
7575{{with nomadVar "nomad/jobs/influxdb"}}
76- DOCKER_INFLUXDB_INIT_PASSWORD={{.admin_password}}
77- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN={{.admin_token}}
76+ DOCKER_INFLUXDB_INIT_PASSWORD=" {{.admin_password}}"
77+ DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=" {{.admin_token}}"
7878{{end}}
7979EOF
8080 destination = " ${ NOMAD_SECRETS_DIR } /env"
You can’t perform that action at this time.
0 commit comments