Multiple nomad job from one consul-template file

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.
Thank you!

Hi @FidasL,

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 :slight_smile: 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!