refactor: make ssh keys to be a list
This commit is contained in:
@@ -43,7 +43,7 @@ resource "proxmox_virtual_environment_vm" "this" {
|
||||
|
||||
user_account {
|
||||
username = "debian"
|
||||
keys = [var.ssh_public_key]
|
||||
keys = var.ssh_public_keys
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -13,9 +13,9 @@ variable "ip_address" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ssh_public_key" {
|
||||
description = "Public SSH key for the admin user"
|
||||
type = string
|
||||
variable "ssh_public_keys" {
|
||||
description = "List of public SSH keys for the admin user"
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "gateway" {
|
||||
|
||||
Reference in New Issue
Block a user