Deploy adhoc backups to all hosts

This commit is contained in:
IamTheFij 2023-08-03 09:53:03 -07:00
parent f66bd95fbb
commit a2d24e03cd

View File

@ -11,7 +11,7 @@ resource "nomad_job" "backup" {
resource "nomad_job" "backup-oneoff" { resource "nomad_job" "backup-oneoff" {
# TODO: Get list of nomad hosts dynamically # TODO: Get list of nomad hosts dynamically
for_each = toset(["n1", "n2"]) for_each = toset(["n1", "n2", "pi4"])
# for_each = toset([ # for_each = toset([
# for node in data.consul_service.nomad.service : # for node in data.consul_service.nomad.service :
# node.node_name # node.node_name