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

@@ -68,10 +68,14 @@ resource "hcloud_firewall" "this" {
}
}
}
resource "hcloud_server" "server" {
depends_on = [hcloud_network_subnet.this]
for_each = local.servers
lifecycle {
ignore_changes = [ user_data ]
}
name = each.key
image = "ubuntu-24.04"
server_type = each.value.type
@@ -100,6 +104,10 @@ resource "hcloud_server" "agent" {
depends_on = [hcloud_server.server]
for_each = local.agents
lifecycle {
ignore_changes = [ user_data ]
}
name = each.key
image = "ubuntu-24.04"
server_type = each.value.type