fix: ssh-public-keys als datei statt string
Deploy Staging / staging (push) Failing after 27s

This commit is contained in:
Sebastian Serfling
2026-05-08 15:05:56 +02:00
parent 4d155c907e
commit 666ae202fb
+6 -2
View File
@@ -16,9 +16,13 @@ provider "proxmox" {
# Create staging LXC mit pct-Befehl
resource "null_resource" "staging_lxc" {
# SSH Public Key in Datei schreiben
provisioner "local-exec" {
command = "mkdir -p /tmp/terraform && echo '${var.ssh_public_key}' > /tmp/terraform/staging_key.pub"
}
provisioner "local-exec" {
command = <<-EOT
set -x
pct create 200 \
${var.lxc_ostemplate} \
--hostname hugo-staging \
@@ -30,7 +34,7 @@ resource "null_resource" "staging_lxc" {
--unprivileged 1 \
--start 1 \
--password "${var.root_password}" \
--ssh-public-keys "${var.ssh_public_key}"
--ssh-public-keys /tmp/terraform/staging_key.pub
EOT
}