22 lines
340 B
HCL
22 lines
340 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
job "simple_batch" {
|
|
type = "batch"
|
|
datacenters = ["dc1"]
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
task "simple_batch" {
|
|
driver = "raw_exec"
|
|
|
|
config {
|
|
command = "sleep"
|
|
args = ["1"]
|
|
}
|
|
}
|
|
}
|