From 1e0f492b1d7f998cb7996e0f307c1e32a07cea36 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Thu, 6 Feb 2025 22:13:14 +0100 Subject: opentofu: completely migrated k8-cluster.tf to modules Successfully built on proxmox --- opentofu/inventory.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opentofu/inventory.tf') diff --git a/opentofu/inventory.tf b/opentofu/inventory.tf index ddf3ba4..16d183a 100644 --- a/opentofu/inventory.tf +++ b/opentofu/inventory.tf @@ -2,13 +2,13 @@ resource "local_file" "ansible_inventory" { filename = "${path.module}/inventory.ini" content = <<-EOT [kube_control_plane] - ${proxmox_vm_qemu.k8s_cp.default_ipv4_address} + ${module.k8s_control_plane.vm.default_ipv4_address} [etcd] - ${proxmox_vm_qemu.k8s_cp.default_ipv4_address} + ${module.k8s_control_plane.vm.default_ipv4_address} [kube_node] - %{for vm in proxmox_vm_qemu.k8s_worker[*]}${vm.default_ipv4_address} + %{for vm in module.k8s_worker.vms}${vm.default_ipv4_address} %{endfor} [k8s_cluster:children] -- cgit v1.2.3