tweaked single node setup

This commit is contained in:
Karim Naufal
2022-03-09 03:43:10 +01:00
parent 2b7d2722c5
commit be1c4efefb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
locals {
# if we are in a single cluster config, we use the default klipper lb instead of Hetzner LB
is_single_node_cluster = var.control_plane_count + length(var.agent_nodepools) == 1
is_single_node_cluster = var.control_plane_count + sum(concat([for v in var.agent_nodepools : v.count], [0])) == 1
ssh_public_key = trimspace(file(var.public_key))
# ssh_private_key is either the contents of var.private_key or null to use a ssh agent.
ssh_private_key = var.private_key == null ? null : trimspace(file(var.private_key))