Add a job_start template

This commit is contained in:
Daniel Berteaud 2023-08-25 00:00:28 +02:00
parent 390e5099ed
commit 32a9bacc01

10
templates/job_start.tpl Normal file
View File

@ -0,0 +1,10 @@
datacenters = [[ .nomad.datacenters | toJSON ]]
[[- if has .nomad "region" ]]
region = [[ .nomad.region | toJSON ]]
[[- end ]]
[[- if has .nomad "node_pool" ]]
node_pool = [[ .nomad.node_pool | toJSON ]]
[[- end ]]
# vim: syntax=hcl