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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user