Try to fix network issue

This commit is contained in:
Philippe Caseiro 2021-03-23 10:12:24 +01:00
parent a2f49ce4a8
commit 1cdaebf4b3
1 changed files with 6 additions and 2 deletions

View File

@ -59,9 +59,13 @@ 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
network_interfaces = { dynamic "network_interfaces"
{
for_each = each.value.network_interfaces for_each = each.value.network_interfaces
{ network_id = opennebula_virtual_network.vnet[each.value.network_name].id, ip = opennebula_virtual_network.vnet[each.value.network_name].ip4} content {
network_id = opennebula_virtual_network.vnet[each.value.network_name].id,
ip = opennebula_virtual_network.vnet[each.value.network_name].ip4
}
} }
tag_labels = each.value.labels tag_labels = each.value.labels