From 2c9c74fda05ed54c671ce0dc02fcfba0e52c403f Mon Sep 17 00:00:00 2001 From: Florian Nowarre Date: Wed, 21 Sep 2022 15:05:51 +0200 Subject: [PATCH] flatcar_user --- .../hetzner/modules/kubernetes-cluster-flatcar/main.tf | 1 + .../hetzner/modules/kubernetes-cluster-flatcar/variables.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" }