From ef2a2a115b7b94968ec595cba066f9e87d4fe77d Mon Sep 17 00:00:00 2001 From: Marko Kaapu Date: Fri, 15 Mar 2024 14:56:52 +0000 Subject: [PATCH] Jenkins controller: Add user mkaapu Signed-off-by: Marko Kaapu --- ssh-keys.yaml | 3 +++ terraform/jenkins-controller.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ssh-keys.yaml b/ssh-keys.yaml index 8629bcf1..b96ea1dd 100644 --- a/ssh-keys.yaml +++ b/ssh-keys.yaml @@ -10,3 +10,6 @@ hrosten: jrautiola: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGlFqSQFoSSuAS1IjmWBFXie329I5Aqf71QhVOnLTBG+ joonas@x1 - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3h/Aj66ndKFtqpQ8H53tE9KbbO0obThC0qbQQKFQRr joonas@zeus +mkaapu: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYpWmLovw4yIfjhWZ75PgtVfk9ZUcYHRLORcDltoufa mkaapu@nixzure + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE6WDXGfrD+WfY2+eP+/c4NrEOeCGpEOE2TcTlwxWXho marko.kaapu@unikie.com diff --git a/terraform/jenkins-controller.tf b/terraform/jenkins-controller.tf index 8cc979f4..f0eaa9cd 100644 --- a/terraform/jenkins-controller.tf +++ b/terraform/jenkins-controller.tf @@ -28,7 +28,7 @@ module "jenkins_controller_vm" { virtual_machine_custom_data = join("\n", ["#cloud-config", yamlencode({ users = [ - for user in toset(["bmg", "flokli", "hrosten", "jrautiola"]) : { + for user in toset(["bmg", "flokli", "hrosten", "jrautiola", "mkaapu"]) : { name = user sudo = "ALL=(ALL) NOPASSWD:ALL" ssh_authorized_keys = local.ssh_keys[user]