github.com/aminovpavel/nomad@v0.11.8/e2e/consultemplate/input/docker.nomad (about) 1 job "test1" { 2 datacenters = ["dc1", "dc2"] 3 type = "service" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "test1" { 11 count = 1 12 13 task "test" { 14 driver = "docker" 15 16 config { 17 image = "redis:3.2" 18 } 19 20 template { 21 data = "---\nkey: {{ key \"consultemplatetest\" }}" 22 destination = "local/file.yml" 23 change_mode = "restart" 24 } 25 } 26 } 27 }