equinix-labs / terraform-equinix-metal-nutanix-cluster

Nutanix Cluster on Equinix Metal
https://deploy.equinix.com/labs/terraform-equinix-metal-nutanix-cluster/
Apache License 2.0
2 stars 6 forks source link

feat: Update subnet configuration in main.tf to utilize the 'metal_subnet' variable. #75

Closed codinja1188 closed 3 months ago

codinja1188 commented 4 months ago

Refactor subnet configuration and comments

This commit refactors the subnet configuration in the 'main.tf' file to utilize the 'metal_subnet' variable instead of hardcoding the subnet value. Previously, an arbitrary subnet '192.168.100.0/22' was used directly within the file. By introducing the 'metal_subnet' variable, the configuration becomes more flexible and easier to manage, allowing users to specify their desired subnet for the Nutanix cluster.

Additionally, this commit removes redundant comments related to subnet configuration that were no longer necessary after the refactor. These comments provided guidance on selecting a subnet, which is now handled through the 'metal_subnet' variable, making the comments obsolete.

Overall, this refactor improves the maintainability and flexibility of the Terraform configuration for deploying Nutanix clusters on Equinix Metal infrastructure.