chore: update lxc to ignore mountpoint changes
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
resource "proxmox_lxc" "pihole" {
|
resource "proxmox_lxc" "pihole" {
|
||||||
# depends_on = [
|
|
||||||
# proxmox_vm_qemu.dev-docker
|
|
||||||
# ]
|
|
||||||
target_node = "pve"
|
target_node = "pve"
|
||||||
vmid = "201"
|
vmid = "201"
|
||||||
hostname = "pihole"
|
hostname = "pihole"
|
||||||
@@ -32,14 +29,10 @@ resource "proxmox_lxc" "pihole" {
|
|||||||
mountpoint {
|
mountpoint {
|
||||||
key = "1"
|
key = "1"
|
||||||
slot = 1
|
slot = 1
|
||||||
storage = "/mnt/lxc/pihole"
|
//storage = "/mnt/lxc/pihole"
|
||||||
// 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.
|
|
||||||
volume = "/mnt/lxc/pihole"
|
volume = "/mnt/lxc/pihole"
|
||||||
mp = "/data"
|
|
||||||
size = "1G"
|
size = "1G"
|
||||||
|
mp = "/data"
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
@@ -56,4 +49,11 @@ resource "proxmox_lxc" "pihole" {
|
|||||||
tag = 10
|
tag = 10
|
||||||
ip6 = "auto"
|
ip6 = "auto"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
mountpoint,
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
15
202-omada.tf
15
202-omada.tf
@@ -37,14 +37,11 @@ resource "proxmox_lxc" "omada" {
|
|||||||
mountpoint {
|
mountpoint {
|
||||||
key = "1"
|
key = "1"
|
||||||
slot = 1
|
slot = 1
|
||||||
storage = "/mnt/lxc/omada"
|
//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.
|
|
||||||
volume = "/mnt/lxc/omada"
|
volume = "/mnt/lxc/omada"
|
||||||
mp = "/data"
|
|
||||||
size = "1G"
|
size = "1G"
|
||||||
|
mp = "/data"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network {
|
||||||
@@ -55,4 +52,10 @@ resource "proxmox_lxc" "omada" {
|
|||||||
tag = 40
|
tag = 40
|
||||||
ip6 = "auto"
|
ip6 = "auto"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
mountpoint,
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user