github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/consul/input/namespaces/template_kv.nomad (about) 1 job "template_kv" { 2 datacenters = ["dc1"] 3 type = "batch" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "group-b" { 11 12 consul { 13 namespace = "banana" 14 } 15 16 task "task-b" { 17 driver = "raw_exec" 18 19 config { 20 command = "cat" 21 args = ["local/a.txt"] 22 } 23 24 template { 25 data = "value: {{ key \"ns-kv-example\" }}" 26 destination = "local/a.txt" 27 } 28 } 29 } 30 31 group "group-z" { 32 33 # no consul namespace set 34 35 task "task-z" { 36 driver = "raw_exec" 37 38 config { 39 command = "cat" 40 args = ["local/a.txt"] 41 } 42 43 template { 44 data = "value: {{ key \"ns-kv-example\" }}" 45 destination = "local/a.txt" 46 } 47 } 48 } 49 }