mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
* consul: reset consul token on job during registration of a reversion * e2e: add test for reverting a job with a consul service * cl: fixup cl entry
36 lines
523 B
HCL
36 lines
523 B
HCL
variable "service" {
|
|
type = string
|
|
}
|
|
|
|
job "service-reversion" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "sleep" {
|
|
|
|
service {
|
|
name = "${var.service}"
|
|
}
|
|
|
|
task "busybox" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "busybox:1"
|
|
command = "sleep"
|
|
args = ["infinity"]
|
|
}
|
|
|
|
resources {
|
|
cpu = 16
|
|
memory = 32
|
|
disk = 64
|
|
}
|
|
}
|
|
}
|
|
} |