From a00190bc2c17c888446d8f5b06e2981a1f159f40 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 19 Oct 2025 19:30:46 +0200 Subject: [PATCH] use jumphost for test Signed-off-by: Kiara Grouwstra --- deployment/check/data-model-tf-proxmox/nixosTest.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/deployment/check/data-model-tf-proxmox/nixosTest.nix b/deployment/check/data-model-tf-proxmox/nixosTest.nix index 6a52470d..7a66d8d2 100644 --- a/deployment/check/data-model-tf-proxmox/nixosTest.nix +++ b/deployment/check/data-model-tf-proxmox/nixosTest.nix @@ -19,7 +19,9 @@ let inherit (import ./constants.nix) pathToRoot; nodeName = "pve"; targetSystem = system; - sshOpts = [ ]; + sshOpts = [ + "ProxyCommand=ssh -W %h:%p pve" + ]; key-file = "/root/.ssh/id_ed25519"; proxmox-user = "root@pam"; proxmox-password = "mytestpw"; @@ -196,17 +198,14 @@ in ip = deployer.succeed(f""" export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt + ssh -o BatchMode=yes -o StrictHostKeyChecking=no pve "true" export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}" ${lib.getExe deployment.run} | jq -r '.ipv4.value[0]' # ${lib.getExe deployment.run} >&2 """).strip() deployer.succeed(f""" - ssh -i "/root/.ssh/id_ed25519" \ - -o StrictHostKeyChecking=no \ - -o BatchMode=yes \ - -J pve \ - root@{ip} su - operator -c hello >&2 + ssh -i "/root/.ssh/id_ed25519" -o StrictHostKeyChecking=no -o BatchMode=yes -J pve root@{ip} su - operator -c hello >&2 """) ''; }