2023-04-10 15:36:59 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2021-03-24 21:42:10 +00:00
|
|
|
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"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|