nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
95 stars 111 forks source link

[feat] Add cluster configuration as ressource #600

Open yehlo opened 1 year ago

yehlo commented 1 year ago

Is your feature request related to a problem? Please describe. We would like to manage our PE aswells as PC configuration through code. Currently we run scripts to install a new cluster aswell as reapply the configuration. These scripts use one of the existing api v1-3 endpoints to ensure our values.

This ofcourse means having to maintain these scripts and make sure if there's configuration to be removed that nothing gets hurt in the process.

Describe the solution you'd like I would like to have a cluster ressource for configs something like:

nutanix_pe_proxy -> configure proxy + whitelist nutanix_pe_pd -> add protection domain nutanix_pe_general -> settings of general page ...

could also just bundle it like nutanix_pe_config -> make all settings available nutanix_pc_config -> see above but for pc

Describe alternatives you've considered We could ofcourse still just make use of the API and create the config management ourselfes. We woud probably switch to some APIv4 SDK to atleast have a single pane of glass instead of 3 APIs with self-written SDKs...

Additional context While I do understand, that the configuration of a cluster is not really a ressource, I do think this would add a lot of usability to the terraform provider.

Having this ressource available could help us improve our nutanix infrastructure.

For any bigger company that has to manage multiple clusters it's a huge benefit to be able to manage the configuration through code. Especially a configuration management for the nutanix PE and PC would help us.

abhimutant commented 1 year ago

Hi @yehlo , we only support PC APIs (v3) . we haven't tested PE APIs(v2) . we can also achieve the same using PC APIs as well. Refer : https://www.nutanix.dev/api_references/prism-central-v3/#/90cf8c01b8623-update-a-existing-cluster Can we get to know what all operations you needs to do with PE, so we can check whether same can be achieved via PC or not ?

Thanks,

yehlo commented 1 year ago

Hi @abhimutant, thanks for following up.

In general we would need:

I can put priorities for them if you would like me to.