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).
31 lines
594 B
HCL
31 lines
594 B
HCL
module "hetzner" {
|
|
source = "./hetzner"
|
|
providers = {
|
|
hcloud = hcloud
|
|
}
|
|
}
|
|
|
|
module "grafana" {
|
|
source = "./grafana"
|
|
providers = {
|
|
grafana = grafana
|
|
}
|
|
plex_token = local.secrets["plex_token"]
|
|
}
|
|
|
|
module "pagerduty" {
|
|
source = "./pagerduty"
|
|
providers = {
|
|
pagerduty = pagerduty
|
|
}
|
|
}
|
|
|
|
module "proxmox" {
|
|
source = "./proxmox"
|
|
providers = {
|
|
proxmox = proxmox
|
|
}
|
|
ssh_authorized_keys = [local.personal_ssh_public_key]
|
|
# Empty until the control plane's k3s server is installed (see proxmox/README).
|
|
k3s_node_token = try(local.secrets["k3s_node_token"], "")
|
|
}
|