-
Notifications
You must be signed in to change notification settings - Fork 28
/
variables.tf
305 lines (246 loc) · 5.76 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
//////
// vSphere variables
//////
variable "vcd_vdc" {
type = string
description = "This is the vcd vdc for the environment."
}
variable "vcd_user" {
type = string
description = "This is the vcd user."
}
variable "vcd_password" {
type = string
description = "This is the vcd password for the environment."
}
variable "vcd_org" {
type = string
description = "This is the vcd org string from the console for the environment."
}
variable "vcd_url" {
type = string
description = "This is the vcd url for the environment."
}
variable "vcd_catalog" {
type = string
description = "This is the vcd catalog to use for the environment."
default = "Public Catalog"
}
variable "rhcos_template" {
type = string
description = "This is the name of the RHCOS template to clone."
}
variable "mac_prefix" {
type = string
description = "Prefix for creating MAC addresses for control, compute and storage nodes (first five parts. MAC address is created by taking this prefix appending it with the final part of the ip address"
default = "00:50:56:01:30"
}
variable "vm_dns_addresses" {
type = list(string)
description = "List of DNS servers to use for your OpenShift Nodes"
default = ["8.8.8.8", "161.26.0.10"]
}
/////////
// OpenShift cluster variables
/////////
variable "cluster_id" {
type = string
description = "This cluster id must be of max length 27 and must have only alphanumeric or hyphen characters."
}
variable "base_domain" {
type = string
description = "The base DNS zone to add the sub zone to."
}
/////////
// Bootstrap machine variables
/////////
variable "bootstrap_ip_address" {
type = string
default = ""
}
variable "bootstrap_mac_address" {
type = string
default = ""
}
variable "bootstrap_disk" {
type = string
default = ""
}
variable "lb_ip_address" {
type = string
default = ""
}
variable "lb_mac_address" {
type = string
default = ""
}
///////////
// control-plane machine variables
///////////
variable "control_plane_count" {
type = string
default = "3"
}
variable "control_plane_ip_addresses" {
type = list(string)
default = []
}
variable "control_plane_mac_addresses" {
type = list(string)
default = []
}
variable "control_plane_memory" {
type = string
default = "16384"
}
variable "control_plane_num_cpus" {
type = string
default = "4"
}
variable "control_disk" {
type = string
}
//////////
// compute machine variables
//////////
variable "compute_count" {
type = string
default = "3"
}
variable "compute_ip_addresses" {
type = list(string)
default = []
}
variable "compute_mac_addresses" {
type = list(string)
default = []
}
variable "compute_memory" {
type = string
default = "16384"
}
variable "compute_num_cpus" {
type = string
default = "4"
}
variable "compute_disk" {
type = string
}
//////////
// storage machine variables
//////////
variable "storage_count" {
type = string
default = "0"
}
variable "storage_ip_addresses" {
type = list(string)
default = []
}
variable "storage_memory" {
type = string
default = "65536"
}
variable "storage_num_cpus" {
type = string
default = "16"
}
variable "storage_disk" {
type = string
default = "512000"
}
//////////
// loadbalancer machine variables
// used to configure an extra nic for the loadbalancer
//////////
variable "openshift_pull_secret" {
type = string
}
variable "openshift_cluster_cidr" {
type = string
default = "10.128.0.0/14"
}
variable "openshift_service_cidr" {
type = string
default = "172.30.0.0/16"
}
variable "openshift_host_prefix" {
type = string
default = 23
}
variable "openshift_version" {
type = string
description = "Specify the OpenShift version you want to deploy. Must be 4.6 or later to use this automation"
default = "4.6"
}
variable "create_loadbalancer_vm" {
type = bool
description = "Create a LoadBalancer and DNS VM for your cluster"
default = true
}
variable "create_vms_only" {
type = bool
description = "only create vms no OpenShift Install"
default = false
}
variable "fips" {
type = bool
description = "install with fips mode"
default = false
}
variable "user_service_network_name" {
type = string
description = "user provided service network name"
}
variable "user_tenant_external_network_name" {
type = string
description = "user provided tenant external network name"
}
variable "additionalTrustBundle" {
type = string
description = "certificate file used for airgapped install registry or proxy server"
default = ""
}
variable "airgapped" {
type = map(string)
description = "test variable for airgapped instead of separate vars"
default = {
enabled = false
ocp_ver_rel = ""
mirror_ip = ""
mirror_fqdn = ""
mirror_port = ""
mirror_repository = ""
}
}
variable "proxy_config" {
type = map(string)
default = {
enabled = false
httpProxy = ""
httpsProxy = ""
noProxy = ""
}
}
variable "cluster_public_ip" {
type = string
}
variable "bastion_disk" {
type = string
default = "200000"
}
variable "initialization_info" {
type = object ({
public_bastion_ip = string
bastion_password = string
internal_bastion_ip = string
terraform_ocp_repo = string
rhel_key = string
machine_cidr = string
network_name = string
static_start_address = string
static_end_address = string
bastion_template = string
run_cluster_install = bool
})
}