I wanted to pass some consul key-value pairs to my nomad job and this is the template from the documentation that I’ve tried to use on my nomad job.
template {
data = <<EOF
{{range ls "app/test"}}
{{.Key}}={{.Value}}
{{end}}
EOF
destination = "env/file.env"
env = true
}
I’m not getting the consul kv even though the nomad job is running without any errors. Are there other configurations on the job or perhaps on the setup that I might have missed?