Go back to hard coded node names for for_each
For some reason this worked until it didn't
This commit is contained in:
parent
25e1dc6566
commit
73b99f80f5
@ -12,10 +12,11 @@ data "consul_service" "nomad" {
|
||||
|
||||
resource "nomad_job" "backups-oneoff" {
|
||||
# TODO: Get list of nomad hosts dynamically
|
||||
for_each = toset([
|
||||
for node in data.consul_service.nomad.service :
|
||||
node.node_name
|
||||
])
|
||||
for_each = toset(["n1", "n2"])
|
||||
# for_each = toset([
|
||||
# for node in data.consul_service.nomad.service :
|
||||
# node.node_name
|
||||
# ])
|
||||
jobspec = templatefile("${path.module}/backup.nomad", {
|
||||
module_path = "${path.module}",
|
||||
batch_node = each.key,
|
||||
|
Loading…
Reference in New Issue
Block a user