diff --git a/modules/vmware/main.tf b/modules/vmware/main.tf index b02694c..098a522 100644 --- a/modules/vmware/main.tf +++ b/modules/vmware/main.tf @@ -68,6 +68,13 @@ resource "vsphere_virtual_machine" "ova" { wait_for_guest_net_timeout = 0 wait_for_guest_ip_timeout = 0 + dynamic "network_interface" { + for_each = each.value.network_map + content { + network_id = data.vsphere_network.network[network_interface.value].id + } + } + ovf_deploy { allow_unverified_ssl_cert = each.value.allow_unverified_ssl_cert remote_ovf_url = each.value.remote_ovf_url