mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 09:53:41 -05:00
Initial commit
This commit is contained in:
27
templates/nomad_jobs/testing/execTest.hcl
Normal file
27
templates/nomad_jobs/testing/execTest.hcl
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user