simplify: nutze ~/.ssh/deploy vom proxmox host
Deploy Staging / staging (push) Failing after 12s

This commit is contained in:
Sebastian Serfling
2026-05-08 15:12:54 +02:00
parent 1f5abb9bc5
commit 0a4568fc83
+2 -7
View File
@@ -42,12 +42,7 @@ resource "null_resource" "staging_lxc" {
command = "sleep 30" command = "sleep 30"
} }
# SSH Key Setup # Setup via SSH (nutzt ~/.ssh/deploy vom Proxmox Host)
provisioner "local-exec" {
command = "mkdir -p ~/.ssh && echo '${var.ssh_private_key}' | base64 -d > ~/.ssh/staging_key && chmod 600 ~/.ssh/staging_key"
}
# Setup via SSH
provisioner "remote-exec" { provisioner "remote-exec" {
inline = [ inline = [
"apt-get update -qq", "apt-get update -qq",
@@ -67,7 +62,7 @@ resource "null_resource" "staging_lxc" {
connection { connection {
type = "ssh" type = "ssh"
user = "root" user = "root"
private_key = var.ssh_private_key private_key = file("~/.ssh/deploy")
host = var.staging_ip host = var.staging_ip
timeout = "5m" timeout = "5m"
} }