fixed TLS handshake error on agents

This commit is contained in:
Karim Naufal
2022-03-03 19:08:12 +01:00
parent 52bb5f663f
commit c92868c054
5 changed files with 3 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
locals {
first_control_plane_network_ipv4 = module.control_planes[0].private_ipv4_address
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))