Please, is it possible to create multiple nomad job files based on one consul-template file? Number of jobs depends on KV pair stored in consul and I need to create those job files in some loop cycle, where loop is in range 0 to KV value.
Welcome to the forums, and thanks for posting! I checked in with the Nomad folks, and they recommended parameterized jobs are going to be your best bet These jobs allow you to deploy workloads in a more consistent loopable fashion.
A quick and dirty way would be to loop through KV store evaluations, but that can lead to some tough tracing scenarios.
Please let me know if this helps you!