pez-infra/terraform/proxmox/outputs.tf
Rasmus Wejlgaard 3e4297f3d6 Add Proxmox Terraform module for k8s cluster
Provisions the substrate for the kube-proxmox Flux cluster on london-a:
a control-plane VM (k3s installed later by the k3s_server Ansible role) and
a worker template that kproximate clones to autoscale. Wires a bpg/proxmox
provider (api token + SSH to root@london-a for snippet upload) into the root
module. Workers auto-join k3s via a cloud-init snippet; the join token is a
two-phase apply (see proxmox/README.md).
2026-06-21 17:54:02 +01:00

13 lines
407 B
HCL

output "control_plane_ip" {
description = "Static IP of the k3s control-plane VM."
value = var.control_plane_ip
}
output "control_plane_vm_id" {
value = proxmox_virtual_environment_vm.k3s_server.vm_id
}
output "worker_template_vm_id" {
description = "Template VM id kproximate clones (set as kpNodeTemplateName/id)."
value = proxmox_virtual_environment_vm.k3s_agent_template.vm_id
}