Setup k3s with the help of ansible after the infra-provisioning

This change is huge! It allows me to manage the k3s installation on the
hetzner-cloud I setup via terraform.
This commit is contained in:
2025-09-15 04:12:20 +02:00
parent d083b9d446
commit dfcdc9797a
13 changed files with 364 additions and 32 deletions

View File

@@ -55,6 +55,15 @@ module "k8s" {
}
}
resource "local_file" "ansible_inventory" {
filename = "${path.module}/inventory.ini"
content = templatefile("./inventory.ini.tftpl", {
server_ips = module.k8s.server_ips_v4,
agent_ips = module.k8s.agent_ips_v4,
k3s_version = var.k3s_version,
})
}
locals {
dns_zones = {
# costs-table (incl. taxes):