mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-07-04 15:46:16 +00:00
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).
13 lines
407 B
HCL
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
|
|
}
|