This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
variables.tf
230 lines (190 loc) · 5.63 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
variable "auth_token" {
description = "This is your Equinix Metal API Auth token. This can also be specified with the TF_VAR_PACKET_AUTH_TOKEN shell environment variable."
type = string
sensitive = true
}
variable "organization_id" {
description = "Your Equinix Metal Organization Id"
type = string
}
variable "project_name" {
default = "anthos-on-metal-1"
}
variable "create_project" {
description = "if true create the Equinix Metal project, if not skip and use the provided project"
default = true
}
variable "project_id" {
description = "Equinix Metal Project ID to use in case create_project is false"
default = "null"
}
/*
Valid vsphere_service_types are:
faultToleranceLogging
vmotion
vSphereReplication
vSphereReplicationNFC
vSphereProvisioning
vsan
management
*/
variable "private_subnets" {
description = "This is the network topology for your vSphere Env"
default = [
{
"name" = "Management",
"nat" = true,
"vsphere_service_type" = "management",
"routable" = true,
"cidr" = "172.16.0.0/24"
},
{
"name" = "vMotion",
"nat" = false,
"vsphere_service_type" = "vmotion",
"routable" = false,
"cidr" = "172.16.1.0/24"
},
{
"name" = "vSAN",
"nat" = false,
"vsphere_service_type" = "vsan",
"routable" = false,
"cidr" = "172.16.2.0/24"
},
{
"name" = "VM Private Net",
"nat" = true,
"vsphere_service_type" = null,
"routable" = true,
"cidr" = "172.16.3.0/24",
"reserved_ip_count" = 100
}
]
}
variable "public_subnets" {
description = "This will dynamically create public subnets in vSphere"
default = [
{
"name" = "VM Public Net",
"nat" = false,
"vsphere_service_type" = null,
"routable" = true,
"ip_count" = 4
}
]
}
variable "router_hostname" {
description = "This is the hostname for the router."
default = "edge-gateway01"
}
variable "esxi_hostname" {
description = "This is the hostname prefix for your esxi hosts. A number will be added to the end."
default = "esx"
}
variable "router_size" {
description = "This is the size/plan/flavor of your router machine"
default = "c3.medium.x86"
}
variable "esxi_size" {
description = "This is the size/plan/flavor of your ESXi machine(s)"
default = "c3.medium.x86"
}
variable "facility" {
description = "This is the Region/Location of your deployment."
default = "ny5"
}
variable "router_os" {
description = "This is the operating System for you router machine (Only Ubuntu 18.04 has been tested)"
default = "ubuntu_18_04"
}
variable "vmware_os" {
description = "This is the version of vSphere that you want to deploy (ESXi 6.5, 6.7, & 7.0 have been tested)"
default = "vmware_esxi_6_7"
}
variable "billing_cycle" {
description = "This is billing cycle to use. The hasn't beend built to allow reserved isntances yet."
default = "hourly"
}
variable "esxi_host_count" {
description = "This is the number of ESXi host you'd like in your cluster."
default = 3
}
variable "vcenter_portgroup_name" {
description = "This is the VM Portgroup you would like vCenter to be deployed to. See 'private_subnets' & 'public_subnets' above. By deploying on a public subnet, you will not need to use the VPN to access vCenter."
default = "Management"
}
variable "vcenter_domain" {
description = "This will be the vSphere SSO domain."
default = "vsphere.local"
}
variable "domain_name" {
description = "This is the domain to use for internal DNS"
default = "metal.local"
}
variable "vpn_user" {
description = "This is the username for the L2TP VPN"
default = "vm_admin"
}
variable "vcenter_datacenter_name" {
description = "This will be the name of the vCenter Datacenter object."
default = "Metal"
}
variable "vcenter_cluster_name" {
description = "This will be the name of the vCenter Cluster object."
default = "Metal-1"
}
variable "vcenter_user_name" {
description = "This will be the admin user for vSphere SSO"
default = "Administrator"
}
variable "gcs_bucket_name" {
default = "vmware"
}
variable "s3_url" {
default = "https://s3.example.com"
}
variable "s3_bucket_name" {
default = "vmware"
}
variable "s3_access_key" {
default = "S3_ACCESS_KEY"
sensitive = true
}
variable "s3_secret_key" {
default = "S3_SECRET_KEY"
sensitive = true
}
variable "s3_boolean" {
default = "false"
}
variable "s3_version" {
description = "S3 API Version (S3v2, S3v4)"
default = "S3v4"
}
variable "object_store_tool" {
description = "Which tool should you use to download objects from the object store? ('mc' and 'gcs' have been tested.)"
default = "mc"
}
variable "object_store_bucket_name" {
description = "This is the name of the bucket on your Object Store"
default = "vmware"
}
variable "relative_path_to_gcs_key" {
description = "If you are using GCS to download you vCenter ISO this is the path to the GCS key"
default = "storage-reader-key.json"
}
variable "vcenter_iso_name" {
}
variable "whitelisted_key_name" {
default = "whitelisted-key.json"
}
variable "connect_key_name" {
default = "connect-key.json"
}
variable "register_key_name" {
default = "register-key.json"
}
variable "stackdriver_key_name" {
default = "stackdriver-key.json"
}