Revert "make private key optional to support hardware tokens for SSH"
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user