aboutsummaryrefslogtreecommitdiffstats
path: root/opentofu/inventory.tf
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-02-06 22:13:14 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2025-02-06 22:13:14 +0100
commit1e0f492b1d7f998cb7996e0f307c1e32a07cea36 (patch)
treea38841b266894d6f0b12776cee3f1b20b4469c83 /opentofu/inventory.tf
parentaeedb9882aa597a45dd43a1664d604c5f1a2d4f8 (diff)
downloadhomelab-iac-1e0f492b1d7f998cb7996e0f307c1e32a07cea36.tar.gz
homelab-iac-1e0f492b1d7f998cb7996e0f307c1e32a07cea36.tar.bz2
homelab-iac-1e0f492b1d7f998cb7996e0f307c1e32a07cea36.zip
opentofu: completely migrated k8-cluster.tf to modules
Successfully built on proxmox
Diffstat (limited to '')
-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]