Revert "make private key optional to support hardware tokens for SSH"

This commit is contained in:
Karim Naufal
2022-01-25 13:17:40 +01:00
committed by GitHub
parent 214d0bf98b
commit 1ed7932dc9
4 changed files with 7 additions and 14 deletions

View File

@@ -27,8 +27,7 @@ resource "hcloud_server" "control_planes" {
connection {
user = "root"
private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
private_key = file(var.private_key)
host = self.ipv4_address
}
}
@@ -39,8 +38,7 @@ resource "hcloud_server" "control_planes" {
connection {
user = "root"
private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
private_key = file(var.private_key)
host = self.ipv4_address
}
}