josenk / terraform-provider-esxi

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

Add possibility to add extra configurations in esxi_guest resource #98

Closed topikettunen closed 4 years ago

topikettunen commented 4 years ago

Added new block for adding extra configurations on ESXI guest. Also added both --allowAllExtraConfig and --allowExtraConfig since those flags are broken (see https://communities.vmware.com/thread/576472).

Sample block:

ovf_extra_configs {
    key = "disk.enableUUID"
    value = "TRUE"
}
topikettunen commented 4 years ago

Seems like --X:injectOvfEnv and --powerOn affect when giving extra configs. So needs to be tested further when giving both properties and extra configs on resource.

josenk commented 4 years ago

I'm sorry, but It's very unlikely I will merge this... It will be a nightmare to read the 'extra' config.

Most likely I will consider setting the uuid=true by default on all the disks.