feat: Added multiple SSH Key uploads
This commit is contained in:
@@ -36,7 +36,7 @@ resource "hcloud_server" "this" {
|
||||
server_type = var.server_type
|
||||
image = var.image
|
||||
location = var.location
|
||||
ssh_keys = [var.ssh_key_id]
|
||||
ssh_keys = var.ssh_key_ids
|
||||
firewall_ids = [hcloud_firewall.this.id]
|
||||
|
||||
connection {
|
||||
|
||||
@@ -13,9 +13,9 @@ variable "location" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ssh_key_id" {
|
||||
description = "ID of the Hetzner Cloud SSH key to install on the server."
|
||||
type = string
|
||||
variable "ssh_key_ids" {
|
||||
description = "IDs of the Hetzner Cloud SSH keys to install on the server."
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "allowed_ssh_source_ips" {
|
||||
@@ -29,6 +29,6 @@ variable "bootstrap_script" {
|
||||
}
|
||||
|
||||
variable "ssh_private_key_path" {
|
||||
description = "Local path to the private key matching var.ssh_key_id, used to run the bootstrap script over SSH."
|
||||
description = "Local path to the private key matching one of var.ssh_key_ids, used to run the bootstrap script over SSH."
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user