Skip to content

Latest commit

 

History

History

metal-setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Terraform Equinix Labs Metal Setup Example

This is an example of how to utilize the root module to deploy the metal module. In this example, deployment target projects must identified by the variable metal_project_ids. A cluster of bare metal nodes will then be provisioned into each project defined by variable metal_project_ids with the configurations set by variable metal_config in the variables.tf file.

Requirements

Name Version
terraform >= 1.3
equinix >= 1.10.0

Providers

No providers.

Modules

Name Source Version
deploy_metal ../../ n/a

Resources

No resources.

Inputs

Name Description Type Default Required
metal_auth_token Equinix Metal user api token. string n/a yes
metal_organization_id Equinix Metal organization id string n/a yes
enable_metal Enable Metal module bool true no
metal_config Configuration for Metal Setup config
object({
device_count = number
os = string
billing_cycle = string
cluster_name = string
device_type = string
})
{
"billing_cycle": "hourly",
"cluster_name": "metal-cluster",
"device_count": 3,
"device_type": "m3.small.x86",
"os": "ubuntu_20_04"
}
no
metal_project_ids Project IDs to deploy Metal into list(string) [] no

Outputs

Name Description
deploy_metal_outputs Outputs of the Deploy Metal module