open-nomad/e2e/consultemplate/input/bad_template_paths.nomad
2020-11-18 10:48:58 -08:00

38 lines
591 B
HCL

job "bad-template-paths" {
datacenters = ["dc1", "dc2"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "template-paths" {
restart {
attempts = 0
mode = "fail"
}
task "task" {
driver = "docker"
config {
image = "busybox:1"
command = "/bin/sh"
args = ["-c", "sleep 300"]
}
template {
source = "/etc/passwd"
destination = "${NOMAD_SECRETS_DIR}/foo/dst"
}
resources {
cpu = 128
memory = 64
}
}
}
}