chore: update lxc to ignore mountpoint changes

This commit is contained in:
2025-10-10 22:55:50 +10:00
parent b7a7daef3b
commit fb2526154b
2 changed files with 18 additions and 15 deletions

View File

@@ -37,14 +37,11 @@ resource "proxmox_lxc" "omada" {
mountpoint {
key = "1"
slot = 1
storage = "/mnt/lxc/omada"
// Without 'volume' defined, Proxmox will try to create a volume with
// the value of 'storage' + : + 'size' (without the trailing G) - e.g.
// "/srv/host/bind-mount-point:256".
// This behaviour looks to be caused by a bug in the provider.
//storage = "/mnt/lxc/omada"
volume = "/mnt/lxc/omada"
mp = "/data"
size = "1G"
mp = "/data"
}
network {
@@ -55,4 +52,10 @@ resource "proxmox_lxc" "omada" {
tag = 40
ip6 = "auto"
}
lifecycle {
ignore_changes = [
mountpoint,
]
}
}