-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables-azure.tf
261 lines (211 loc) · 5.83 KB
/
variables-azure.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
variable "azure_config_version" {
description = <<EOF
(internal) This declares the version of the Azure configuration variables.
It has no impact on generated assets but declares the version contract of the configuration.
EOF
default = "0.1"
}
variable "azure_environment" {
type = string
description = "The target Azure cloud environment for the cluster."
default = "public"
}
variable "azure_region" {
type = string
description = "The target Azure region for the cluster."
}
variable "azure_bootstrap_vm_type" {
type = string
description = "Instance type for the bootstrap node. Example: `Standard_DS4_v3`."
default = "Standard_D4s_v3"
}
variable "azure_master_vm_type" {
type = string
description = "Instance type for the master node(s). Example: `Standard_DS4_v3`."
default = "Standard_D4s_v3"
}
variable "azure_extra_tags" {
type = map(string)
description = <<EOF
(optional) Extra Azure tags to be applied to created resources.
Example: `{ "key" = "value", "foo" = "bar" }`
EOF
default = {}
}
variable "azure_master_root_volume_type" {
type = string
description = "The type of the volume the root block device of master nodes."
default = "Premium_LRS"
}
variable "azure_master_root_volume_size" {
type = string
description = "The size of the volume in gigabytes for the root block device of master nodes."
default = 512
}
variable "azure_base_domain_resource_group_name" {
type = string
description = "The resource group that contains the dns zone used as base domain for the cluster."
}
variable "azure_image_url" {
type = string
description = "The URL of the vm image used for all nodes."
default = "https://rhcos.blob.core.windows.net/imagebucket/rhcos-43.81.202003111353.0-azure.x86_64.vhd"
}
variable "azure_subscription_id" {
type = string
description = "The subscription that should be used to interact with Azure API"
}
variable "azure_client_id" {
type = string
description = "The app ID that should be used to interact with Azure API"
}
variable "azure_client_secret" {
type = string
description = "The password that should be used to interact with Azure API"
}
variable "azure_tenant_id" {
type = string
description = "The tenant ID that should be used to interact with Azure API"
}
variable "azure_master_availability_zones" {
type = list(string)
description = "The availability zones in which to create the masters. The length of this list must match master_count."
default = [
"1",
"2",
"3",
]
}
variable "azure_preexisting_network" {
type = bool
default = false
description = "Specifies whether an existing network should be used or a new one created for installation."
}
variable "azure_network_resource_group_name" {
type = string
description = "The name of the network resource group, either existing or to be created."
default = null
}
variable "azure_virtual_network" {
type = string
description = "The name of the virtual network, either existing or to be created."
default = null
}
variable "azure_control_plane_subnet" {
type = string
description = "The name of the subnet for the control plane, either existing or to be created."
default = null
}
variable "azure_compute_subnet" {
type = string
description = "The name of the subnet for worker nodes, either existing or to be created"
default = null
}
variable "azure_private" {
type = bool
description = "This determines if this is a private cluster or not."
default = false
}
variable "azure_emulate_single_stack_ipv6" {
type = bool
description = "This determines whether a dual-stack cluster is configured to emulate single-stack IPv6."
default = false
}
variable "azure_outbound_user_defined_routing" {
type = bool
default = false
description = <<EOF
This determined whether User defined routing will be used for egress to Internet.
When false, Standard LB will be used for egress to the Internet.
EOF
}
##############
variable "cluster_name" {
type = string
}
variable "base_domain" {
type = string
}
variable "machine_v4_cidrs" {
type = list(string)
default = [
"10.0.0.0/16"
]
}
variable "machine_v6_cidrs" {
type = list(string)
default = []
}
variable "openshift_cluster_network_cidr" {
type = string
default = "10.128.0.0/14"
}
variable "openshift_cluster_network_host_prefix" {
type = string
default = 23
}
variable "openshift_service_network_cidr" {
type = string
default = "172.30.0.0/16"
}
variable "use_ipv4" {
type = bool
default = true
}
variable "use_ipv6" {
type = bool
default = false
}
variable "openshift_version" {
type = string
default = "4.3.26"
}
variable "openshift_pull_secret" {
type = string
default = "pull-secret"
}
variable "azure_infra_root_volume_size" {
type = string
default = 128
}
variable "azure_worker_root_volume_size" {
type = string
default = 128
}
variable "master_count" {
type = string
default = 3
}
variable "worker_count" {
type = string
default = 3
}
variable "infra_count" {
type = string
default = 0
}
variable "azure_infra_vm_type" {
type = string
default = "Standard_D4s_v3"
}
variable "azure_worker_vm_type" {
type = string
default = "Standard_D4s_v3"
}
variable "airgapped" {
type = map(string)
default = {
enabled = false
repository = ""
}
}
variable "proxy_config" {
type = map(string)
default = {
enabled = false
httpProxy = "http://user:password@ip:port"
httpsProxy = "http://user:password@ip:port"
noProxy = "ip1,ip2,ip3,.example.com,cidr/mask"
additionalTrustBundle = "/path/to/bundle.pem" # set to "" for no additionalTrustBundle
}
}