Try to fix network issue
This commit is contained in:
parent
1cdaebf4b3
commit
3e1cb1aed1
|
@ -59,14 +59,15 @@ module "vms" {
|
||||||
cpu = each.value.cpu
|
cpu = each.value.cpu
|
||||||
vcpu = each.value.vcpu
|
vcpu = each.value.vcpu
|
||||||
ram = each.value.memory
|
ram = each.value.memory
|
||||||
dynamic "network_interfaces"
|
|
||||||
{
|
network_interfaces = {
|
||||||
for_each = each.value.network_interfaces
|
for_each = each.value.network_interfaces
|
||||||
content {
|
{
|
||||||
network_id = opennebula_virtual_network.vnet[each.value.network_name].id,
|
network_id = opennebula_virtual_network.vnet[each.value.network_name].id,
|
||||||
ip = opennebula_virtual_network.vnet[each.value.network_name].ip4
|
ip = opennebula_virtual_network.vnet[each.value.network_name].ip4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tag_labels = each.value.labels
|
tag_labels = each.value.labels
|
||||||
|
|
||||||
system_image_name = each.value.disks.system.name
|
system_image_name = each.value.disks.system.name
|
||||||
|
|
Loading…
Reference in New Issue