-
Notifications
You must be signed in to change notification settings - Fork 23
/
variables.tf
135 lines (113 loc) · 3.2 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
131
132
133
134
135
variable "equinix_metal_auth_token" {
type = string
description = "Equinix Metal API Key"
}
variable "equinix_metal_project_id" {
type = string
default = "null"
description = "Equinix Metal Project ID"
}
variable "equinix_metal_organization_id" {
type = string
default = "null"
description = "Equinix Metal Organization ID"
}
variable "hostname" {
type = string
default = "anthos-baremetal"
description = "Hostname for the nodes"
}
variable "metro" {
type = string
default = "ny"
description = "Equinix Metal Metro to deploy into"
}
variable "cp_plan" {
type = string
default = "c3.small.x86"
description = "Equinix Metal device type to deploy control plane nodes"
}
variable "worker_plan" {
type = string
default = "c3.small.x86"
description = "Equinix Metal device type to deploy for worker nodes"
}
variable "ha_control_plane" {
type = bool
default = true
description = "Do you want a highly available control plane"
}
variable "worker_count" {
type = number
default = 3
description = "Number of baremetal worker nodes"
}
variable "operating_system" {
type = string
default = "ubuntu_20_04"
description = "The Operating system of the node"
}
variable "billing_cycle" {
type = string
default = "hourly"
description = "How the node will be billed (Not usually changed)"
}
variable "cluster_name" {
type = string
default = "eqnx-metal-gke"
description = "The GKE cluster name"
validation {
condition = length(var.cluster_name) <= 15
error_message = "Cluster name length must be 15 characters or less."
}
}
variable "equinix_metal_create_project" {
type = bool
default = true
description = "Create a Metal Project if this is 'true'. Else use provided 'equinix_metal_project_id'"
}
variable "equinix_metal_project_name" {
type = string
default = "baremetal-anthos"
description = "The name of the Metal project if 'create_project' is 'true'."
}
variable "gcp_project_id" {
type = string
description = "The GCP project ID to use"
}
variable "gcp_keys_path" {
type = string
default = ""
description = "The path to a directory that contains the required GCP service account keys"
}
# Advanced Variables below this line
variable "bgp_asn" {
type = number
default = 65000
description = "BGP ASN to peer with Equinix Metal"
}
variable "ccm_version" {
type = string
default = "v3.3.0"
description = "The version of the Equinix Metal CCM"
}
variable "kube_vip_version" {
type = string
default = "0.4.2"
description = "The version of Kube-VIP to use"
}
variable "anthos_version" {
type = string
default = "1.8.7"
description = "The version of Google Anthos to install"
}
variable "storage_module" {
type = string
description = "The name of the storage module to enable. If set, use storage_options."
default = ""
}
variable "storage_options" {
type = any
description = "Options specific to the storage module. Check the documentation for the storage module for details."
default = {}
}