From af78d8fc86aa8e68bf994af105b9fe3de7b380ac Mon Sep 17 00:00:00 2001 From: phaer Date: Tue, 8 Feb 2022 09:12:16 +0100 Subject: [PATCH] terraform fmt --- agents.tf | 2 +- master.tf | 2 +- servers.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agents.tf b/agents.tf index a0dbd07..61ace48 100644 --- a/agents.tf +++ b/agents.tf @@ -64,7 +64,7 @@ resource "hcloud_server" "agents" { provisioner "file" { content = templatefile("${path.module}/templates/agent.conf.tpl", { server = "https://${local.first_control_plane_network_ip}:6443" - token = random_password.k3s_token.result + token = random_password.k3s_token.result }) destination = "/etc/rancher/k3s/agent.conf" diff --git a/master.tf b/master.tf index 11c9557..e8eed4a 100644 --- a/master.tf +++ b/master.tf @@ -69,7 +69,7 @@ resource "hcloud_server" "first_control_plane" { node-ip = local.first_control_plane_network_ip advertise-address = local.first_control_plane_network_ip token = random_password.k3s_token.result - node-taint = var.allow_scheduling_on_control_plane ? [] : [ "node-role.kubernetes.io/master:NoSchedule" ] + node-taint = var.allow_scheduling_on_control_plane ? [] : ["node-role.kubernetes.io/master:NoSchedule"] }) destination = "/etc/rancher/k3s/config.yaml" diff --git a/servers.tf b/servers.tf index 1545b9a..9d2cbbc 100644 --- a/servers.tf +++ b/servers.tf @@ -72,7 +72,7 @@ resource "hcloud_server" "control_planes" { advertise-address = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index) tls-san = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index) token = random_password.k3s_token.result - node-taint = var.allow_scheduling_on_control_plane ? [] : [ "node-role.kubernetes.io/master:NoSchedule" ] + node-taint = var.allow_scheduling_on_control_plane ? [] : ["node-role.kubernetes.io/master:NoSchedule"] }) destination = "/etc/rancher/k3s/config.yaml"