mp vars for dynamic

This commit is contained in:
admin 2026-01-28 16:03:12 -07:00
parent 5a73fb3f86
commit d7bdc8e682

View file

@ -45,16 +45,22 @@ resource "proxmox_virtual_environment_container" "cattle" {
size = each.value.disk_size
}
# Mount Point 0
mount_point {
volume = each.value.mp0_volume
path = "/docker"
# Dynamic block for MP0
dynamic "mount_point" {
for_each = each.value.mp0_volume != "" ? [1] : []
content {
volume = each.value.mp0_volume
path = "/docker"
}
}
# Mount Point 1
mount_point {
volume = each.value.mp1_volume
path = "/repo"
# Dynamic block for MP1
dynamic "mount_point" {
for_each = each.value.mp1_volume != "" ? [1] : []
content {
volume = each.value.mp1_volume
path = "/repo"
}
}
network_interface {