check hello application

Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
Kiara Grouwstra 2025-10-13 22:07:01 +02:00
parent 73630ffac6
commit a758147b16
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 13 additions and 6 deletions

View file

@ -180,11 +180,19 @@ in
""")
with subtest("Run the deployment"):
deployer.succeed(f"""
ip = deployer.succeed(f"""
export SSL_CERT_FILE=/tmp/pve-ca-bundle.crt
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
${lib.getExe deployment.run} >&2
${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 \
root@{ip} hello >&2
""")
# target.succeed("su - operator -c hello 1>&2")
'';
}

View file

@ -2,11 +2,10 @@
set -euo pipefail
declare tf_env
export TF_LOG=info
# # on upload explodes RAM use + logs file content, causing timeout
# export TF_LOG=debug
cd "${tf_env}/deployment/run/tf-proxmox"
# parallelism=1: limit OOM risk
tofu apply --auto-approve -input=false -parallelism=1
tofu output -json
TF_LOG=info tofu apply --auto-approve -input=false -parallelism=1 >&2
TF_LOG=error tofu output -json