From 2fa1b17ac6e9fa1e9ebd75db43c1d062b1443a8d Mon Sep 17 00:00:00 2001 From: phaer Date: Sat, 19 Feb 2022 15:12:04 +0100 Subject: [PATCH] allow additional ssh public keys --- locals.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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