Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 9s
Provision 3 thin control planes and 3 workers with role-specific sizing and VMID ranges (701/711), generate per-node cloud-init snippets with SSH key injection, and add NixOS kubeadm host/module scaffolding for cp-1..3 and wk-1..3.
22 lines
478 B
HCL
22 lines
478 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 "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]
|
|
}
|