vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
151 stars 112 forks source link

Add support for overriding VM template disks in fast provisioned VDCs #1206

Closed Didainius closed 9 months ago

Didainius commented 9 months ago

override_template_disk configuration in vcd_vapp_vm and vcd_vm allows users to change template disk size. The current limitation is that it can only be done in non fast provisioned VDCs.

This PR adds consolidate_disks_on_create option to vcd_vapp_vm and vcd_vm that can perform disk consolidation before override_template_disk configuration is applied. The effect is that a user will be able to change template disk size when creating VMs in fast provisioned VDCs.

Note. The user performing this operation will need to have vApp: VM Migrate, Force Undeploy, Relocate, Consolidate right.

Closes #1000