Files
Terraform/downloader.tf
2025-09-29 15:59:43 -05:00

56 lines
1.2 KiB
HCL

resource "proxmox_lxc" "downloader" {
target_node = "ryuk"
hostname = "downloader"
vmid = 222
ostemplate = "cephfs:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 6
memory = 2096
swap = 1024
start = true
tags = "terraform"
nameserver = "192.168.0.224"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
features {
nesting = true
}
rootfs {
storage = "local-lvm"
size = "42G"
}
mountpoint{
key = "0"
slot = 0
storage = "Ceph"
mp = "/data"
# 1.2TB, terraform plugin is setting it to M
size = "1258292M"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.58/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.58"
}
}
}
resource "netbird_peer" "downloader" {
id = "d0vt71jl0ubs73a72kb0"
ssh_enabled = false
name = "homelab"
}