feat: Added multiple SSH Key uploads

This commit is contained in:
2026-07-10 22:01:48 +01:00
parent 547fee06fa
commit e39e1637da
11 changed files with 38 additions and 33 deletions
+4 -4
View File
@@ -70,9 +70,9 @@ variable "prod_private_ip" {
default = "10.0.1.11"
}
variable "ssh_key_name" {
description = "Name of an SSH key already uploaded to your Hetzner Cloud project (Console > Security > SSH Keys)."
type = string
variable "ssh_key_names" {
description = "Names of SSH keys already uploaded to your Hetzner Cloud project (Console > Security > SSH Keys). All are installed on every server."
type = list(string)
}
variable "allowed_ssh_source_ips" {
@@ -82,7 +82,7 @@ variable "allowed_ssh_source_ips" {
}
variable "ssh_private_key_path" {
description = "Local path to the private key matching var.ssh_key_name. Used once per server by OpenTofu to upload and run the post-install bootstrap script over SSH immediately after creation (see infra/scripts/bootstrap.sh.tftpl)."
description = "Local path to the private key matching one of var.ssh_key_names - only needs to be a key you hold yourself, not all of them. Used once per server by OpenTofu to upload and run the post-install bootstrap script over SSH immediately after creation (see infra/scripts/bootstrap.sh.tftpl)."
type = string
}