From d2cb804a881c28763437e4f60f225df4365b5af8 Mon Sep 17 00:00:00 2001 From: DavidSpek Date: Thu, 16 Dec 2021 15:27:09 +0100 Subject: [PATCH] use file function for connection private key --- modules/controller_pool/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/controller_pool/main.tf b/modules/controller_pool/main.tf index b4f31a2..7cf57bf 100644 --- a/modules/controller_pool/main.tf +++ b/modules/controller_pool/main.tf @@ -97,7 +97,7 @@ resource "null_resource" "key_wait_transfer" { type = "ssh" user = "root" host = metal_device.k8s_controller_standby[count.index].access_public_ipv4 - private_key = var.ssh_private_key_path + private_key = file(var.ssh_private_key_path) password = metal_device.k8s_controller_standby[count.index].root_password }