Run native K3s remote bootstrap explicitly under Bash
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-11-02 22:43:33 -06:00
parent fb2a4673a2
commit 336bb10397
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ resource "null_resource" "k3s_control_plane" {
}
provisioner "remote-exec" {
inline = [<<EOT
exec /bin/bash <<'JEANNIE_K3S_BOOTSTRAP'
set -euo pipefail
if command -v qm >/dev/null 2>&1 || sudo test -d /etc/pve; then
if [ '${self.triggers.allow_hypervisor_host}' != true ]; then
@ -69,6 +70,7 @@ done
sudo systemctl status k3s --no-pager -l || true
sudo journalctl -u k3s --no-pager -n 160 || true
exit 1
JEANNIE_K3S_BOOTSTRAP
EOT
]
}