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:
9
main.tf
9
main.tf
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user