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"
}
# SSH Key Setup
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
# Setup via SSH (nutzt ~/.ssh/deploy vom Proxmox Host)
provisioner "remote-exec" {
inline = [
"apt-get update -qq",
@@ -67,7 +62,7 @@ resource "null_resource" "staging_lxc" {
connection {
type = "ssh"
user = "root"
private_key = var.ssh_private_key
private_key = file("~/.ssh/deploy")
host = var.staging_ip
timeout = "5m"
}