Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check_capacity.py script #75

Open
di opened this issue Jun 21, 2021 · 2 comments
Open

Add a check_capacity.py script #75

di opened this issue Jun 21, 2021 · 2 comments

Comments

@di
Copy link

di commented Jun 21, 2021

A script like https://github.com/equinix/terraform-metal-anthos-on-vsphere/blob/main/check_capacity.py would be helpful here, to determine capacity prior to attempting to apply the terraform configuration.

@displague
Copy link
Member

The packet cli can also be used: https://github.com/packethost/packet-cli/blob/master/docs/packet_capacity_check.md

There's an open issue on the Terraform provider that would allow for the selection of matching facilities when there is no preference or the checking for availability in a chosen facility: equinix/terraform-provider-equinix#180

@displague
Copy link
Member

We can now get these assurances from https://registry.terraform.io/providers/equinix/metal/latest/docs/data-sources/facility and https://registry.terraform.io/providers/equinix/metal/latest/docs/data-sources/metro which can error out if the facility or metro does not report the necessary capacity.

I'm just noting that the capability is present in the Terraform provider now. This module is not taking advantage of this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants