This commit is contained in:
+2
-7
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user