Files
nomad/e2e/consul/input/service_reversion.nomad
Seth Hoenig fcc6cfa849 consul: restore consul token when reverting a job (#15996)
* 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
2023-02-01 14:02:45 -06:00

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
}
}
}
}