mp vars for dynamic
This commit is contained in:
parent
5a73fb3f86
commit
d7bdc8e682
1 changed files with 14 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue