-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Issue Description
Is your feature request related to a problem? Please describe.
I'm provisioning VMs in Prism Central using Terraform and ran into limitations related to disk configuration when deploying from templates.
Using the nutanix_deploy_template_v2 resource:
https://registry.terraform.io/providers/nutanix/nutanix/2.3.4/docs/resources/deploy_template_v2
it is currently not possible to configure disks during deployment. Specifically, there is no option to:
-
add additional disks
-
modify disk size or configuration defined in the template
This makes it difficult to use templates while still customizing storage per VM.
Describe the solution you'd like
Support disk configuration overrides in nutanix_deploy_template_v2, such as:
- adding additional disks
- modifying existing disk sizes
- specifying disk configuration during deployment
This would allow more flexible VM provisioning while still using Prism Central templates.
Describe alternatives you've considered
As a workaround, I tried using nutanix_virtual_machine_v2 and overriding disks when cloning from an existing VM:
https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/resources/virtual_machine_v2#reference-1
This allows attaching additional disks, but has several limitations:
- existing disks cannot be modified
- Prism Central templates cannot be referenced
- cloning works only within a single cluster scope
Because of this, it does not work for cross-cluster deployments using templates.
Additional context
Our use case requires:
- deploying VMs from Prism Central templates
- cross-cluster deployment
- custom disk configuration during deployment
Please let me know if there is a recommended approach or if this functionality is planned for the provider.