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 {
|
user_account {
|
||||||
username = "debian"
|
username = "debian"
|
||||||
keys = [var.ssh_public_key]
|
keys = var.ssh_public_keys
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-3
@@ -13,9 +13,9 @@ variable "ip_address" {
|
|||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "ssh_public_key" {
|
variable "ssh_public_keys" {
|
||||||
description = "Public SSH key for the admin user"
|
description = "List of public SSH keys for the admin user"
|
||||||
type = string
|
type = list(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "gateway" {
|
variable "gateway" {
|
||||||
|
|||||||
Reference in New Issue
Block a user