a minimal job definition of what I am attempting:
(btw, bare word node.class works the same as "${node.class}")
job "updater" {
type = "sysbatch"
region = "us-west-2"
datacenters = ["us-west-2"]
constraint {
attribute = node.class
operator = "regexp"
value = "^[^(special)]"
}
group "updater" {
task "updater" {
driver = "raw_exec"
config {
command = "/usr/bin/uptime"
}
env {
foo = "1"
}
} # task
} # group
} # job