diff --git a/main.tf b/main.tf index a5ea3d3..dafcb15 100644 --- a/main.tf +++ b/main.tf @@ -85,7 +85,6 @@ resource "digitalocean_droplet" "machine" { data "ct_config" "machine-ignitions" { for_each = toset(var.machines) - # content = data.template_file.machine-configs[each.key].rendered content = templatefile("${path.module}/cl/machine-${each.key}.yaml.tmpl", { ssh_keys = jsonencode(var.ssh_keys), name = each.key @@ -93,16 +92,6 @@ data "ct_config" "machine-ignitions" { strict = true } -#data "template_file" "machine-configs" { -# for_each = toset(var.machines) -# template = file("${path.module}/cl/machine-${each.key}.yaml.tmpl") - -# vars = { -# ssh_keys = jsonencode(var.ssh_keys) -# name = each.key -# } -#} - output "ip-addresses" { value = { for key in var.machines :