generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
variables.tf
130 lines (112 loc) · 3.68 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
variable "metal_auth_token" {
type = string
sensitive = true
description = "Equinix Metal API token."
}
variable "metal_vlan_description" {
type = string
default = "ntnx-demo. Deployed with Terraform module terraform-equinix-metal-nutanix-cluster."
description = "Description to add to created VLAN."
}
variable "metal_project_name" {
type = string
default = ""
description = <<EOT
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. One (and only one) of
`metal_project_name` or `metal_project_id` is required or `metal_project_id` must be set.
Required if `create_project` is true.
EOT
}
variable "metal_project_id" {
type = string
default = ""
description = <<EOT
The ID of the Metal project in which to deploy to cluster. If `create_project` is false and
you do not specify a project name, the project will be looked up by ID. One (and only one) of
`metal_project_name` or `metal_project_id` is required or `metal_project_id` must be set.
EOT
}
variable "cluster_name" {
type = string
default = "nutanix"
description = "The name of the Nutanix cluster, used as a prefix for resources."
}
variable "cluster_subnet" {
type = string
default = "192.168.100.0/22"
description = "nutanix cluster subnet"
}
variable "metal_organization_id" {
type = string
default = null
description = "The ID of the Metal organization in which to create the project if `create_project` is true."
}
variable "metal_metro" {
type = string
description = "The metro to create the cluster in."
}
variable "create_project" {
type = bool
default = true
description = "(Optional) to use an existing project matching `metal_project_name`, set this to false."
}
variable "metal_bastion_plan" {
type = string
default = "m3.small.x86"
description = "Which plan to use for the bastion host."
}
variable "create_vlan" {
type = bool
default = true
description = "Whether to create a new VLAN for this project."
}
variable "metal_vlan_id" {
type = number
default = null
description = "ID of the VLAN you wish to use."
}
variable "metal_nutanix_os" {
type = string
default = "nutanix_lts_6_5"
description = "Which OS to use for the Nutanix nodes."
}
variable "metal_nutanix_plan" {
type = string
default = "m3.large.x86"
description = "Which plan to use for the Nutanix nodes (must be Nutanix compatible, see https://deploy.equinix.com/developers/os-compatibility/)"
}
variable "nutanix_node_count" {
type = number
default = 3
description = "The number of Nutanix nodes to create."
}
variable "skip_cluster_creation" {
type = bool
default = false
description = "Skip the creation of the Nutanix cluster."
}
variable "nutanix_reservation_ids" {
type = list(string)
default = []
description = <<EOT
Hardware reservation IDs to use for the Nutanix nodes. If specified, the length of this list must
be the same as `nutanix_node_count`. Each item can be a reservation UUID or `next-available`. If
you use reservation UUIDs, make sure that they are in the same metro specified in `metal_metro`.
EOT
}
variable "create_vrf" {
type = bool
default = true
description = "Whether to create a new VRF for this project."
}
variable "vrf_id" {
type = string
default = null
description = "ID of the VRF you wish to use."
}
variable "cluster_gateway" {
description = "The cluster gateway IP address"
type = string
default = ""
}