forked from fediversity/fediversity
add no-op second invocation
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
c6cfe9eef9
commit
be01af269d
2 changed files with 9 additions and 1 deletions
|
|
@ -210,11 +210,18 @@ in
|
||||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=no pve "true"
|
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
|
|
||||||
""").strip()
|
""").strip()
|
||||||
|
|
||||||
deployer.succeed(f"""
|
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
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
# no-op
|
||||||
|
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} >&2
|
||||||
|
""", timeout=300)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ resource "proxmox_virtual_environment_vm" "nix_vm" {
|
||||||
# or just defer syncing when only this changed?
|
# or just defer syncing when only this changed?
|
||||||
ignore_changes = [
|
ignore_changes = [
|
||||||
disk["import_from"],
|
disk["import_from"],
|
||||||
|
initialization,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
node_name = var.node_name
|
node_name = var.node_name
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue