Run native K3s remote bootstrap explicitly under Bash
This commit is contained in:
parent
fb2a4673a2
commit
336bb10397
|
|
@ -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
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue