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

View File

@@ -1,7 +1,8 @@
resource "proxmox_lxc" "pihole" { resource "proxmox_lxc" "netbox" {
target_node = "pve" target_node = "pve"
vmid = "201" vmid = "201"
hostname = "pihole" hostname = "netbox"
ostemplate = "local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst" ostemplate = "local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst"
password = var.ci_password password = var.ci_password
unprivileged = false unprivileged = false
@@ -9,8 +10,7 @@ resource "proxmox_lxc" "pihole" {
onboot = true onboot = true
start = true start = true
startup = "order=1000" startup = "order=1000"
tags = "dns;container" tags = "docker;container;appliance"
ssh_public_keys = <<EOF ssh_public_keys = <<EOF
@@ -25,22 +25,23 @@ resource "proxmox_lxc" "pihole" {
size = "8G" size = "8G"
} }
// Bind Mount Point
mountpoint {
key = "1"
slot = 1
//storage = "/mnt/lxc/pihole"
volume = "/mnt/lxc/pihole"
size = "1G"
mp = "/data"
}
features { features {
fuse = true fuse = true
nesting = true nesting = true
mount = "nfs;cifs" mount = "nfs;cifs"
} }
// Bind Mount Point
mountpoint {
key = "1"
slot = 1
//storage = "/mnt/lxc/omada"
volume = "/mnt/lxc/netbox"
size = "1G"
mp = "/data"
}
network { network {
name = "eth0" name = "eth0"
bridge = "vmbr0" bridge = "vmbr0"
@@ -55,5 +56,4 @@ resource "proxmox_lxc" "pihole" {
mountpoint, mountpoint,
] ]
} }
} }

View File

@@ -1,7 +1,5 @@
resource "proxmox_lxc" "omada" { resource "proxmox_lxc" "omada" {
# depends_on = [
# proxmox_vm_qemu.dev-docker
# ]
target_node = "pve" target_node = "pve"
vmid = "202" vmid = "202"
hostname = "omada" hostname = "omada"