forked from fediversity/fediversity
check hello application
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
73630ffac6
commit
a758147b16
2 changed files with 13 additions and 6 deletions
|
|
@ -180,11 +180,19 @@ in
|
||||||
""")
|
""")
|
||||||
|
|
||||||
with subtest("Run the deployment"):
|
with subtest("Run the deployment"):
|
||||||
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
|
||||||
export PROXMOX_VE_API_TOKEN="root@pam!mytoken={pm_token}"
|
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")
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
declare tf_env
|
declare tf_env
|
||||||
|
|
||||||
export TF_LOG=info
|
|
||||||
# # on upload explodes RAM use + logs file content, causing timeout
|
# # on upload explodes RAM use + logs file content, causing timeout
|
||||||
# export TF_LOG=debug
|
# export TF_LOG=debug
|
||||||
|
|
||||||
cd "${tf_env}/deployment/run/tf-proxmox"
|
cd "${tf_env}/deployment/run/tf-proxmox"
|
||||||
# parallelism=1: limit OOM risk
|
# parallelism=1: limit OOM risk
|
||||||
tofu apply --auto-approve -input=false -parallelism=1
|
TF_LOG=info tofu apply --auto-approve -input=false -parallelism=1 >&2
|
||||||
tofu output -json
|
TF_LOG=error tofu output -json
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue