salt-ext-modules-vmware icon indicating copy to clipboard operation
salt-ext-modules-vmware copied to clipboard

[FEATURE REQUEST] Add support for specifying `Datastore` and `OvfConfiguration` to `saltext.vmware.modules.vm.deploy_ovf` and `saltext.vmware.modules.vm.deploy_ova`

Open ggiesen opened this issue 2 years ago • 0 comments

Currently, vmware_vm.deploy_ova and vmware_vm.deploy_ovf deploy to the first datastore attached to the specified host:

https://github.com/saltstack/salt-ext-modules-vmware/blob/fe13ae79615d586aa3bf416993558835efc7af6c/src/saltext/vmware/modules/vm.py#L104-L106

Also, the modules don't have the ability to specify OvfConfiguration to be able to configure the template parameters.

While not being able to specify the datastore can be worked around with another module to migrate the VM to a new datastore, it's an extra step that shouldn't be necessary. Not being able to specify the OVF configuration parameters, however, essentially makes the modules useless. It would be helpful if they supported specifying both the datastore to deploy the OVA/OVF to as well as the configuration parameters for the template.

Bonus points for an additional option to power the VM on after import.

ggiesen avatar May 17 '22 19:05 ggiesen