open-nomad/e2e/parameterized/input/simple.nomad

27 lines
429 B
Plaintext
Raw Normal View History

job "periodic" {
datacenters = ["dc1"]
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
operator = "set_contains_any"
value = "darwin,linux"
}
parameterized {
meta_optional = ["i"]
}
group "group" {
task "task" {
driver = "docker"
config {
image = "busybox:1"
command = "/bin/sh"
args = ["-c", "sleep 5"]
}
}
}
}