Skip to content

Commit

Permalink
Merge pull request #30 from equinix-labs/optional-variables
Browse files Browse the repository at this point in the history
fix: provide a default value for optional variables
  • Loading branch information
cprivitere authored Apr 24, 2024
2 parents 0c984e5 + 470a038 commit a93c8c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ variable "metal_vlan_description" {

variable "metal_project_name" {
type = string
description = "The name of the Metal project in which to deploy the cluster. If create_project is false the project will be looked up by name."
default = ""
description = "The name of the Metal project in which to deploy the cluster. If create_project is false and you do not specify a project ID, the project will be looked up by name."
}

variable "metal_project_id" {
type = string
description = "The ID of the Metal project in which to deploy the cluster. Only used if create_project is false and metal_project_name is empty."
default = ""
description = "The ID of the Metal project in which to deploy to cluster. If create_project is false and you specify a project ID, the metal_project_name variable is not used."
}

variable "metal_organization_id" {
type = string
description = "The ID of the Metal organization in which to create the project if create_project is true."
Expand Down Expand Up @@ -47,6 +50,7 @@ variable "create_vlan" {
}
variable "metal_vlan_id" {
type = number
default = null
description = "ID of the VLAN you wish to use."
}

Expand Down

0 comments on commit a93c8c8

Please sign in to comment.