aboutsummaryrefslogtreecommitdiff
path: root/opentofu/inventory.tf
diff options
context:
space:
mode:
Diffstat (limited to 'opentofu/inventory.tf')
-rw-r--r--opentofu/inventory.tf6
1 files changed, 3 insertions, 3 deletions
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]