Compare commits

...

3 Commits

3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ resource "null_resource" "cloud_init_deb" {
connection { connection {
type = "ssh" type = "ssh"
user = "root" user = "root"
private_key = file("~/.ssh/homelab.comprofix.xyz") private_key = file("~/.ssh/pve2.comprofix.xyz")
host = "pve2.comprofix.xyz" host = "pve2.comprofix.xyz"
agent = true agent = true
} }

View File

@ -10,6 +10,7 @@ resource "proxmox_lxc" "omada" {
start = true start = true
startup = "order=1000" startup = "order=1000"
ssh_public_keys = <<EOF ssh_public_keys = <<EOF
${var.ssh_key} ${var.ssh_key}
EOF EOF

View File

@ -10,9 +10,10 @@ terraform {
version = "~> 0.1.0" version = "~> 0.1.0"
} }
} }
backend "pg" { backend "pg" {
conn_str = "postgres://${var.tfusername}:${var.tfpassword}@${var.tfurl}"
} }
encryption { encryption {
key_provider "pbkdf2" "mykey" { key_provider "pbkdf2" "mykey" {
passphrase = var.passphrase passphrase = var.passphrase