I read documentation https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/virtual_machine#using-vapp-properties-to-supply-ovf-ova-configuration and few tutorials about cloning machine from an OVF/OVA-created template with vApp properties and I always read about local path to ovf template or they just put name of template in variables and that works like there https://blog.inkubate.io/create-a-centos-7-terraform-template-for-vmware-vsphere/. Where Terraform search for template? What if I have template in some datastore? What should I write in this part of my file?
data "vsphere_datastore" "datastore" {
name = "my_best_datastore"
datacenter_id = "${data.vsphere_datacenter.dc.id}"
}
data "vsphere_virtual_machine" "template_from_ovf" {
name = "template_from_ovf" ---what should be there? Path like /dc/datastore/somefile or only name?
datacenter_id = "${data.vsphere_datacenter.dc.id}"
}
question from:https://stackoverflow.com/questions/65851868/deploy-virtual-machine-cloning-ovf-ova-from-datastore-vsphere