diff --git a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf index 7a514570a..e6bce7d06 100644 --- a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf +++ b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf @@ -146,6 +146,7 @@ data "template_file" "machine-configs" { vars = { ssh_keys = jsonencode(var.ssh_public_keys) + user_flatcar = jsonencode(var.user_flatcar) name = each.key } } diff --git a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/variables.tf b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/variables.tf index a9cac2962..4f2f8f51d 100644 --- a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/variables.tf +++ b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/variables.tf @@ -27,7 +27,7 @@ variable "ssh_public_keys" { type = list(string) } -variable "ssh_public_keys" { +variable "ssh_private_key_path" { type = string default = "~/.ssh/id_rsa" }