Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 10s
Make Terraform the source of truth for node IPs, remove guest-agent/SSH discovery from the normal workflow path, simplify the bootstrap controller to a fresh-run flow, and swap the initial CNI to Flannel so cluster readiness is easier to prove before reintroducing more complex reconcile behavior.
36 lines
788 B
HCL
36 lines
788 B
HCL
output "control_plane_vm_ids" {
|
|
value = {
|
|
for i in range(var.control_plane_count) :
|
|
"cp-${i + 1}" => proxmox_vm_qemu.control_planes[i].vmid
|
|
}
|
|
}
|
|
|
|
output "control_plane_vm_names" {
|
|
value = [for vm in proxmox_vm_qemu.control_planes : vm.name]
|
|
}
|
|
|
|
output "control_plane_vm_ipv4" {
|
|
value = {
|
|
for i in range(var.control_plane_count) :
|
|
proxmox_vm_qemu.control_planes[i].name => var.control_plane_ips[i]
|
|
}
|
|
}
|
|
|
|
output "worker_vm_ids" {
|
|
value = {
|
|
for i in range(var.worker_count) :
|
|
"wk-${i + 1}" => proxmox_vm_qemu.workers[i].vmid
|
|
}
|
|
}
|
|
|
|
output "worker_vm_names" {
|
|
value = [for vm in proxmox_vm_qemu.workers : vm.name]
|
|
}
|
|
|
|
output "worker_vm_ipv4" {
|
|
value = {
|
|
for i in range(var.worker_count) :
|
|
proxmox_vm_qemu.workers[i].name => var.worker_ips[i]
|
|
}
|
|
}
|