2018-03-19 15:40:36 +00:00
|
|
|
job "test" {
|
2020-09-11 13:21:28 +00:00
|
|
|
|
|
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "${attr.kernel.name}"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
|
|
|
type = "service"
|
2018-03-19 15:40:36 +00:00
|
|
|
|
|
|
|
group "t" {
|
|
|
|
count = 3
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
task "t" {
|
|
|
|
driver = "raw_exec"
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
config {
|
|
|
|
command = "bash"
|
|
|
|
args = ["-c", "lol 5000"]
|
|
|
|
}
|
|
|
|
}
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
restart {
|
|
|
|
attempts = 0
|
|
|
|
delay = "0s"
|
|
|
|
mode = "fail"
|
|
|
|
}
|
|
|
|
}
|
2018-03-29 16:35:45 +00:00
|
|
|
}
|