allow additional ssh public keys

This commit is contained in:
phaer 2022-02-19 15:12:04 +01:00
parent 406ba988bf
commit 2fa1b17ac6
2 changed files with 7 additions and 1 deletions

View File

@ -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 = {

View File

@ -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