diff --git a/locals.tf b/locals.tf index 675935d..ce74971 100644 --- a/locals.tf +++ b/locals.tf @@ -45,7 +45,7 @@ locals { passwd = { users = [{ name = "root" - sshAuthorizedKeys = [local.ssh_public_key] + sshAuthorizedKeys = concat([local.ssh_public_key], var.additional_public_keys) }] } storage = { diff --git a/variables.tf b/variables.tf index e23c2bc..9346e5d 100644 --- a/variables.tf +++ b/variables.tf @@ -14,6 +14,12 @@ variable "private_key" { type = string } +variable "additional_public_keys" { + description = "Additional SSH public Keys. Use them to grant other team members root access to your cluster nodes" + type = list(string) + default = [] +} + variable "location" { description = "Default server location" type = string