debug: zeige pct create fehler
Deploy Staging / staging (push) Failing after 8s

This commit is contained in:
Sebastian Serfling
2026-05-08 15:04:37 +02:00
parent 46cd198b41
commit 4d155c907e
+3 -3
View File
@@ -18,6 +18,7 @@ provider "proxmox" {
resource "null_resource" "staging_lxc" {
provisioner "local-exec" {
command = <<-EOT
set -x
pct create 200 \
${var.lxc_ostemplate} \
--hostname hugo-staging \
@@ -28,9 +29,8 @@ resource "null_resource" "staging_lxc" {
--net0 name=eth0,bridge=${var.lxc_bridge},ip=${var.staging_ip}/24,gw=${var.staging_gw} \
--unprivileged 1 \
--start 1 \
--password '${var.root_password}' \
--ssh-public-keys '${var.ssh_public_key}' \
2>/dev/null || true
--password "${var.root_password}" \
--ssh-public-keys "${var.ssh_public_key}"
EOT
}