-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
310 lines (259 loc) · 7.89 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
306
307
308
309
310
variable "address_space" {
type = list(string)
description = "Virtual network adress space"
default = ["10.224.0.0/12"] # 10.224.0.0 - 10.239.255.255
}
variable "acr_admin_enabled" {
type = bool
description = "Specifies whether the admin user is enabled"
default = true
}
variable "acr_name" {
type = string
description = "Azure container registry name, if empty a random name will be used"
default = ""
}
variable "acr_sku" {
type = string
description = "The SKU name of the container registry. Possible values are Basic, Standard and Premium"
default = "Standard"
}
variable "acr_enabled" {
type = bool
description = "value"
default = true
}
variable "aks_name" {
type = string
description = "Azure kubernetes system (AKS) resource name"
default = ""
}
variable "aks_subnet_address_space" {
type = list(string)
description = "Virtual network adress space"
default = ["10.224.0.0/16"] # 10.224.0.0 - 10.224.255.255
}
variable "aks_subnet_name" {
type = string
description = "AKS subnet name"
default = "aks-subnet"
}
variable "aks_network_profile" {
type = object({
network_plugin = string
service_cidr = string
dns_service_ip = string
})
description = "AKS network profile, check terraform documentation https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#network_profile for each of the fields meaning"
default = {
dns_service_ip = "10.0.0.10"
network_plugin = "kubenet"
service_cidr = "10.0.0.0/16" # 172.16.0.0 -> 172.16.255.255
}
}
variable "create_aks_subnet" {
type = bool
description = "Create and link aks-subnet to aks. If you are using mappia for a pre-existing cluster you might want to keep the auto-generated subnet. In that case mark this as false"
default = true
}
variable "default_node_pool" {
type = object({
max_count = number
min_count = number
vm_size = string
name = string
set_max_map_count = bool
zones = optional(list(string))
})
description = "AKS default node pool configuration"
default = {
name = "agentpool"
max_count = 10
min_count = 8
vm_size = "Standard_B2s"
set_max_map_count = true
}
}
variable "dns_prefix" {
type = string
description = "DNS prefix specified when creating the managed cluster"
default = ""
}
variable "domain_name_label" {
type = string
description = "Label for the Domain Name. Will be used to make up the FQDN. Random value will be used if this is not provided"
default = ""
}
variable "encryption_key" {
type = string
description = "Magento encryption key"
sensitive = true
default = ""
}
variable "extra_node_pools" {
type = list(object({
max_count = number
min_count = number
vm_size = string
name = string
set_max_map_count = bool
zones = optional(list(string))
node_taint = optional(list(string))
}))
description = "AKS extra node pool configuration"
default = []
}
variable "helm_akvaks_chart_version" {
type = string
description = "Akvaks chart version, latest will apply by default"
default = "0.4.2" # x-release-please-version
}
variable "helm_akvaks_values" {
type = string
description = "AKV to AKS chart extra configuration file path"
default = "no-file"
}
variable "helm_ingress_name" {
type = string
description = "Ingress chart name to be deployed"
default = "mappia-nginx"
}
variable "helm_ingress_namespace" {
type = string
description = "Kubernetes namespace to deploy the chart to"
default = "ingress-nginx"
}
variable "helm_ingress_values" {
type = string
description = "Ingress chart extra configuration file path"
default = "no-file"
}
variable "helm_mappia_chart_version" {
type = string
description = "Mappia chart version, latest will apply by default"
default = "0.4.2" # x-release-please-version
}
variable "helm_mappia_name" {
type = string
description = "Mappia chart name"
default = "mappia"
}
variable "helm_mappia_set_values" {
type = map(string)
description = "Dict of custom values to be used as --set in helm command. E.g {\"installer.enabled\" = false }. These values will override the default set when keys collide"
default = {}
}
variable "helm_mappia_use_default_config" {
type = bool
description = "Use pre-defined ingress/magento host configurations for mappia chart"
default = true
}
variable "helm_mappia_values" {
type = string
description = "Mappia chart extra configuration file path"
default = "no-file"
}
variable "helm_pwd" {
type = string
description = "Mappia's helm registry password"
sensitive = true
}
variable "helm_release_name" {
type = string
description = "Mappia chart release name"
default = "mappia"
}
variable "helm_user" {
type = string
description = "Mappia's helm registry user"
sensitive = true
}
variable "kubernetes_version" {
type = string
description = "AKS kubernetes version"
default = "1.25"
}
variable "kv_name" {
type = string
description = "[Optional] Keyvault resource name. If left empty a random name will be chosen"
default = ""
}
variable "kv_sku_name" {
type = string
description = "The Name of the SKU used for this Key Vault. Possible values are 'standard' and 'premium'"
default = "standard"
}
variable "location" {
type = string
description = "Location to create the resources. If unset, resource group location will be used"
default = ""
}
variable "oms_log_analytics_workspace_id" {
type = string
description = "The ID of the Log Analytics Workspace which the OMS Agent should send data to."
default = ""
}
variable "public_ip_name" {
type = string
description = "Public Ip resource name"
default = "mappia-public-ip"
}
variable "public_ip_zones" {
type = list(string)
description = "Public Ip zones"
default = []
}
variable "resource_group_name" {
type = string
description = "Resource Group Name"
default = "mappia"
}
variable "secrets" {
type = map(string)
description = "Map of secrets that will be maitained by terraform e.g {\"my-secret\" = \"my-secret-value\" }"
sensitive = true
default = {}
}
variable "shared_cache_pwd" {
type = string
description = "Magento shared cache password"
sensitive = true
default = ""
}
variable "graphql_id_salt" {
type = string
description = "Magento GraphQl Cache ID Salt. https://developer.adobe.com/commerce/webapi/graphql/usage/caching/#caching-for-logged-in-customers. It should be 32 characters long. See https://github.com/magento/magento2/blob/2.4.7-p2/lib/internal/Magento/Framework/Config/ConfigOptionsListConstants.php#L168"
sensitive = true
default = ""
}
variable "rabbitmq_pwd" {
type = string
description = "The password used the `magento` user that connects to RabbitMQ"
sensitive = true
default = ""
}
variable "sp_id" {
type = string
description = "Service principal client Id"
}
variable "sp_object_id" {
type = string
description = "Service principal object Id"
}
variable "sp_secret" {
type = string
description = "Service principal client secret"
}
variable "sp_tenant_id" {
type = string
description = "Service principal tenant id"
}
variable "subscription_id" {
type = string
description = "Azure subscription id"
}
variable "virtual_network_name" {
type = string
description = "Virtual network resource name. If not specified a random name will be generated"
default = ""
}