From ab038258759c4207c3d4451b442ce87c4c8372aa Mon Sep 17 00:00:00 2001 From: Florian Nowarre Date: Sun, 18 Sep 2022 21:48:22 +0200 Subject: [PATCH] readme and template path --- contrib/terraform/hetzner/README.md | 2 +- .../hetzner/modules/kubernetes-cluster-flatcar/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/terraform/hetzner/README.md b/contrib/terraform/hetzner/README.md index aedbdb34a..79f48cbec 100644 --- a/contrib/terraform/hetzner/README.md +++ b/contrib/terraform/hetzner/README.md @@ -60,7 +60,7 @@ Run Terraform to create the infrastructure. ```bash terraform -chdir=../../contrib/terraform/hetzner init -terraform apply --var-file default.tfvars ../../contrib/terraform/hetzner/ +terraform -chdir=../../contrib/terraform/hetzner/ apply --var-file=default.tfvars ``` You should now have a inventory file named `inventory.ini` that you can use with kubespray. diff --git a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf index d416dc44c..04f05824a 100644 --- a/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf +++ b/contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf @@ -143,7 +143,7 @@ data "template_file" "machine-configs" { name => machine } #template = file("${path.module}/machine-${each.key}.yaml.tmpl") - template = file("${path.module}/template/machine.yaml.tmpl") + template = file("${path.module}/templates/machine.yaml.tmpl") vars = { ssh_keys = jsonencode(var.ssh_public_keys)