forked from fediversity/fediversity
use jumphost for test
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
d0534ef93a
commit
a00190bc2c
1 changed files with 5 additions and 6 deletions
|
|
@ -19,7 +19,9 @@ let
|
||||||
inherit (import ./constants.nix) pathToRoot;
|
inherit (import ./constants.nix) pathToRoot;
|
||||||
nodeName = "pve";
|
nodeName = "pve";
|
||||||
targetSystem = system;
|
targetSystem = system;
|
||||||
sshOpts = [ ];
|
sshOpts = [
|
||||||
|
"ProxyCommand=ssh -W %h:%p pve"
|
||||||
|
];
|
||||||
key-file = "/root/.ssh/id_ed25519";
|
key-file = "/root/.ssh/id_ed25519";
|
||||||
proxmox-user = "root@pam";
|
proxmox-user = "root@pam";
|
||||||
proxmox-password = "mytestpw";
|
proxmox-password = "mytestpw";
|
||||||
|
|
@ -196,17 +198,14 @@ in
|
||||||
|
|
||||||
ip = deployer.succeed(f"""
|
ip = deployer.succeed(f"""
|
||||||
export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt
|
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}"
|
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
|
||||||
${lib.getExe deployment.run} | jq -r '.ipv4.value[0]'
|
${lib.getExe deployment.run} | jq -r '.ipv4.value[0]'
|
||||||
# ${lib.getExe deployment.run} >&2
|
# ${lib.getExe deployment.run} >&2
|
||||||
""").strip()
|
""").strip()
|
||||||
|
|
||||||
deployer.succeed(f"""
|
deployer.succeed(f"""
|
||||||
ssh -i "/root/.ssh/id_ed25519" \
|
ssh -i "/root/.ssh/id_ed25519" -o StrictHostKeyChecking=no -o BatchMode=yes -J pve root@{ip} su - operator -c hello >&2
|
||||||
-o StrictHostKeyChecking=no \
|
|
||||||
-o BatchMode=yes \
|
|
||||||
-J pve \
|
|
||||||
root@{ip} su - operator -c hello >&2
|
|
||||||
""")
|
""")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue