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 size = each.value.disk_size
} }
# Mount Point 0 # Dynamic block for MP0
mount_point { dynamic "mount_point" {
volume = each.value.mp0_volume for_each = each.value.mp0_volume != "" ? [1] : []
path = "/docker" content {
volume = each.value.mp0_volume
path = "/docker"
}
} }
# Mount Point 1 # Dynamic block for MP1
mount_point { dynamic "mount_point" {
volume = each.value.mp1_volume for_each = each.value.mp1_volume != "" ? [1] : []
path = "/repo" content {
volume = each.value.mp1_volume
path = "/repo"
}
} }
network_interface { network_interface {