Hi, is it possible to access host environment variables from a nomad client.conf file?
I’ve tried this in the client
block:
host_volume "some-host-storage" {
path = "${SOME_PLACE}"
read_only = false
}
But then nomad starts without interpolating this variable:
client setup failed: node setup failed: failed to validate volume some-host-storage, err: stat ${SOME_PLACE}: no such file or directory"
Thanks!
J.
Hi @jeteve,
Unfortunately the Nomad client configuration does not support environment variable interpolation. It is expected some form of configuration management would perform this work while writing the files to disk.
Thanks,
jrasell and the Nomad team
1 Like
Thanks @jrasell , I was actually wondering about how to integrate nomad with configuration management. Are there some best practices around I could have a look at?
Thanks!
J.
Hi @jeteve,
No best practices per-se, but here are some links to examples which utilise different approaches:
Thanks,
jrasell and the Nomad team