josenk / terraform-provider-esxi

Terraform-provider-esxi plugin
GNU General Public License v3.0
538 stars 154 forks source link

esxi_guest sub directory #209

Closed tamdavidson closed 5 months ago

tamdavidson commented 11 months ago

Unsure if I have missed it in the readme and other sources. However, I am struggling to see if it is possible to save/create/store esxi_guest VM in a subdirectory of a datastore.

Currently, when I run terra, the esxi_guest is saved in the root directory of the datastore, which is not the end of the world, but I want the esxi_guest to be stored in a sub-directory of the datastore.

Is there a possibility to add a parameter such as "dir" or "sub-dir" that could be optionally supplied to allow the esxi_guest to be stored in a sub-directory?

josenk commented 10 months ago

ovftool creates the directories automatically, which matches the same naming convention as the ui. It creates a dir based on the VM name.... I believe what you are referencing is when are manually moving things around in a ssh shell to the esxi host. It's technically possible, but its better to keep standards.