From 9a7c31b44a4cd0b73aadbabcacb8b9e7d4a9ec67 Mon Sep 17 00:00:00 2001 From: mnokka-unikie Date: Mon, 18 Mar 2024 15:44:04 +0200 Subject: [PATCH] Jenkins: Add user mika Signed-off-by: mnokka-unikie --- ssh-keys.yaml | 2 ++ terraform/jenkins-controller.tf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ssh-keys.yaml b/ssh-keys.yaml index b96ea1dd..45dad2ff 100644 --- a/ssh-keys.yaml +++ b/ssh-keys.yaml @@ -13,3 +13,5 @@ jrautiola: mkaapu: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYpWmLovw4yIfjhWZ75PgtVfk9ZUcYHRLORcDltoufa mkaapu@nixzure - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE6WDXGfrD+WfY2+eP+/c4NrEOeCGpEOE2TcTlwxWXho marko.kaapu@unikie.com +mika: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKoroafXsrWkoLewJ7EYcHodqlYILV2T8xtRo6RL99vz mika@nixos diff --git a/terraform/jenkins-controller.tf b/terraform/jenkins-controller.tf index f0eaa9cd..8c607b6f 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", "mkaapu"]) : { + for user in toset(["bmg", "flokli", "hrosten", "jrautiola", "mkaapu", "mika"]) : { name = user sudo = "ALL=(ALL) NOPASSWD:ALL" ssh_authorized_keys = local.ssh_keys[user]