allow additional ssh public keys
This commit is contained in:
parent
406ba988bf
commit
2fa1b17ac6
@ -45,7 +45,7 @@ locals {
|
|||||||
passwd = {
|
passwd = {
|
||||||
users = [{
|
users = [{
|
||||||
name = "root"
|
name = "root"
|
||||||
sshAuthorizedKeys = [local.ssh_public_key]
|
sshAuthorizedKeys = concat([local.ssh_public_key], var.additional_public_keys)
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
storage = {
|
storage = {
|
||||||
|
@ -14,6 +14,12 @@ variable "private_key" {
|
|||||||
type = string
|
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" {
|
variable "location" {
|
||||||
description = "Default server location"
|
description = "Default server location"
|
||||||
type = string
|
type = string
|
||||||
|
Loading…
Reference in New Issue
Block a user