chore: remove pihold. Add netbox

This commit is contained in:
2025-10-12 16:27:45 +10:00
parent fb2526154b
commit e6ed17b127
2 changed files with 16 additions and 18 deletions

59
201-netbox.tf Normal file
View File

@@ -0,0 +1,59 @@
resource "proxmox_lxc" "netbox" {
target_node = "pve"
vmid = "201"
hostname = "netbox"
ostemplate = "local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst"
password = var.ci_password
unprivileged = false
ostype = "debian"
onboot = true
start = true
startup = "order=1000"
tags = "docker;container;appliance"
ssh_public_keys = <<EOF
${var.ssh_key}
EOF
memory = "4096"
swap = "512"
rootfs {
storage = "local"
size = "8G"
}
features {
fuse = true
nesting = true
mount = "nfs;cifs"
}
// Bind Mount Point
mountpoint {
key = "1"
slot = 1
//storage = "/mnt/lxc/omada"
volume = "/mnt/lxc/netbox"
size = "1G"
mp = "/data"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "10.10.10.10/24"
gw = "10.10.10.1"
tag = 10
ip6 = "auto"
}
lifecycle {
ignore_changes = [
mountpoint,
]
}
}