fix(vmware): adding network interface definiton for ovf imports

This commit is contained in:
Philippe Caseiro 2023-11-29 11:15:50 +01:00
parent 1ab2c571a6
commit 4aba5c317d
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ resource "vsphere_virtual_machine" "ova" {
wait_for_guest_net_timeout = 0 wait_for_guest_net_timeout = 0
wait_for_guest_ip_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 { ovf_deploy {
allow_unverified_ssl_cert = each.value.allow_unverified_ssl_cert allow_unverified_ssl_cert = each.value.allow_unverified_ssl_cert
remote_ovf_url = each.value.remote_ovf_url remote_ovf_url = each.value.remote_ovf_url