VMware Cloud Community
m_pahlevanzadeh
Enthusiast
Enthusiast

terraform and ovf_deploy

I have the following code in terraform :

ovf_deploy {
local_ovf_path = var.ovf_source_file
disk_provisioning = "thin"
ip_protocol = "IPV4"
ip_allocation_policy = "STATIC_MANUAL"
ovf_network_map = {
"ESX-port-1" = data.vsphere_network.network.id
"ESX-port-2" = data.vsphere_network.network.id
"ESX-port-3" = data.vsphere_network.network.id
}
}

vapp {
properties = {
"guestinfo.hostname" = "majd",
"guestinfo.ipaddress" = "192.168.30.180",
"guestinfo.netmask" = "255.255.255.0",
"guestinfo.gateway" = "192.168.30.1",
"guestinfo.dns" = "192.168.30.1",
"guestinfo.domain" = "primp-industries.com",
"guestinfo.ntp" = "pool.ntp.org",
"guestinfo.password" = "VMware1!"
}
}

If I don't use vapp block, It create a VM from my OVF.

But when I want to use  vapp , I get the following error:

error while creating vapp properties config unsupported vApp properties in vapp.properties: [guestinfo.ntp guestinfo.hostname guestinfo.password guestinfo.ipaddress guestinfo.domain guestinfo.gateway guestinfo.dns guestinfo.netmask]

How can I use vapp variables in terraform?

How can I enable vapp in terraform?

 

0 Kudos
1 Reply
saintdle1
Contributor
Contributor

This might help

 

https://veducate.co.uk/terraform-vsphere-vapp-properties/

Personal technical ramblings; - www.vEducate.co.uk
0 Kudos