dbb6edd96d
* e2e: add e2e tests for job submission api * e2e: fixup callers of AllocLogs * fix typo
37 lines
459 B
HCL
37 lines
459 B
HCL
variable "X" {
|
|
type = string
|
|
}
|
|
|
|
variable "Y" {
|
|
type = number
|
|
}
|
|
|
|
variable "Z" {
|
|
type = bool
|
|
}
|
|
|
|
job "xyz" {
|
|
type = "batch"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "group" {
|
|
task "task" {
|
|
driver = "raw_exec"
|
|
|
|
config {
|
|
command = "echo"
|
|
args = ["X ${var.X}, Y ${var.Y}, Z ${var.Z}"]
|
|
}
|
|
|
|
resources {
|
|
cpu = 10
|
|
memory = 16
|
|
}
|
|
}
|
|
}
|
|
}
|