Files
Terraform/downloader.tf
2025-12-12 23:54:31 -06:00

64 lines
1.4 KiB
HCL

resource "proxmox_lxc" "downloader" {
target_node = "ryuk2"
hostname = "downloader"
vmid = 222
ostemplate = "cephfs:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 6
memory = 2096
swap = 1024
start = true
tags = "terraform;deb13"
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 {
# Dir on host
#storage = "/media"
# This is ignored as mount point is used. but must be defined
# volume is needed as a workaround for bug
#volume = "/media"
# mountpoint within container
#mp = "/media"
acl = false
file = null
key = "1"
mp = "/media"
size = "12000G"
quota = false
replicate = false
shared = false
backup = false
slot = 1
storage = watari
volume = "/data"
}
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"
}
}
}