mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-17 17:33:41 -05:00
28 lines
484 B
HCL
28 lines
484 B
HCL
job "execTest" {
|
|
region = "global"
|
|
datacenters = ["{{ datacenter_name }}"]
|
|
type = "batch"
|
|
|
|
constraint {
|
|
attribute = "${node.unique.name}"
|
|
operator = "regexp"
|
|
value = "rpi3"
|
|
}
|
|
|
|
group "testing" {
|
|
|
|
task "execTest" {
|
|
driver = "raw_exec"
|
|
config {
|
|
command = "/usr/local/bin/backup_configs"
|
|
args = ["--verbose","--job","sonarr"]
|
|
}
|
|
|
|
resources {
|
|
cpu = 500
|
|
memory = 256
|
|
}
|
|
}
|
|
}
|
|
}
|