From fb1f8db36bcc4c544f076ebc0c695fe166a871b4 Mon Sep 17 00:00:00 2001 From: kasun Date: Wed, 5 Aug 2026 16:31:38 +0200 Subject: [PATCH] enhancenment(proxmox-infra): added ssh pub keys of the other 2 nodes to cloud init vm creation. added the nodes manually since already created. --- 01-proxmox-infra/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/01-proxmox-infra/index.ts b/01-proxmox-infra/index.ts index 844d3b5..83e555e 100644 --- a/01-proxmox-infra/index.ts +++ b/01-proxmox-infra/index.ts @@ -166,7 +166,9 @@ const ciRunnerKey = new tls.PrivateKey("ci-runner-key", { // --------------------------------------------------------------------------- const k3sVmPassword = config.requireSecret("k3sVmPassword"); -const sshPvePublicKey = config.requireSecret("sshPvePublicKey"); +const pve1SshPublicKey = config.requireSecret("pve1SshPublicKey"); +const pve2SshPublicKey = config.requireSecret("pve2SshPublicKey"); +const pve3SshPublicKey = config.requireSecret("pve3SshPublicKey"); interface NodeConfig { name: string; @@ -271,7 +273,9 @@ const k3sVms = nodeConfigs.map( username: "ubuntu", password: k3sVmPassword, keys: [ - sshPvePublicKey.apply((k) => k.trim()), + pve1SshPublicKey.apply((k) => k.trim()), + pve2SshPublicKey.apply((k) => k.trim()), + pve3SshPublicKey.apply((k) => k.trim()), ciRunnerKey.publicKeyOpenssh.apply((k) => k.trim()), ], },