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

This commit is contained in:
Sebastian Serfling
2026-05-08 15:36:33 +02:00
parent 0a4568fc83
commit a429605f32
+1 -6
View File
@@ -49,11 +49,6 @@ resource "null_resource" "staging_lxc" {
"apt-get install -y hugo nginx git rsync curl",
"systemctl enable --now nginx",
"useradd -m -s /bin/bash deploy 2>/dev/null || true",
"mkdir -p /home/deploy/.ssh",
"chmod 700 /home/deploy/.ssh",
"echo '${var.ssh_public_key}' >> /home/deploy/.ssh/authorized_keys",
"chmod 600 /home/deploy/.ssh/authorized_keys",
"chown -R deploy:deploy /home/deploy/.ssh",
"mkdir -p /var/www/html",
"chown -R deploy:deploy /var/www/html",
"echo '✅ Staging VM Setup complete!'"
@@ -62,7 +57,7 @@ resource "null_resource" "staging_lxc" {
connection {
type = "ssh"
user = "root"
private_key = file("~/.ssh/deploy")
private_key = file(pathexpand("~/.ssh/deploy"))
host = var.staging_ip
timeout = "5m"
}