-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.customer_input.tf
More file actions
284 lines (258 loc) · 6.9 KB
/
vars.customer_input.tf
File metadata and controls
284 lines (258 loc) · 6.9 KB
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
###########################################################################
# IAM vars: resource groups and roles
###########################################################################
variable "create_resource_groups" {
type = bool
default = true
description = <<-HELP
If true, the module will create resource groups for Redpanda resources.
HELP
}
variable "redpanda_resource_group_name" {
type = string
default = "redpanda-rg"
description = <<-HELP
The name of the resource group to place Redpanda resources.
HELP
}
variable "redpanda_storage_resource_group_name" {
type = string
default = "storage-rg"
description = <<-HELP
The name of the resource group to place Redpanda storage resources.
HELP
}
variable "redpanda_network_resource_group_name" {
type = string
default = "network-rg"
description = <<-HELP
The name of the resource group to place Redpanda network resources.
HELP
}
variable "redpanda_iam_resource_group_name" {
type = string
default = "iam-rg"
description = <<-HELP
The name of the resource group to place Redpanda IAM resources.
HELP
}
variable "redpanda_agent_identity_name" {
type = string
default = "agent-uai"
description = <<-HELP
The name of user assigned identity for Redpanda agent.
HELP
}
variable "redpanda_cert_manager_identity_name" {
type = string
default = "cert-manager-uai"
description = <<-HELP
The name of user assigned identity for cert-manager.
HELP
}
variable "redpanda_external_dns_identity_name" {
type = string
default = "external-dns-uai"
description = <<-HELP
The name of user assigned identity for external-dns.
HELP
}
variable "redpanda_cluster_identity_name" {
type = string
default = "cluster-uai"
description = <<-HELP
The name of user assigned identity for Redpanda cluster.
HELP
}
variable "aks_identity_name" {
type = string
default = "aks-uai"
description = <<-HELP
The name of user assigned identity for AKS.
HELP
}
variable "redpanda_console_identity_name" {
type = string
default = "console-uai"
description = <<-HELP
The name of user assigned identity for Redpanda Console.
HELP
}
variable "kafka_connect_identity_name" {
type = string
default = "kafka-connect-uai"
description = <<-HELP
The name of user assigned identity for Kafka Connect.
HELP
}
variable "redpanda_connect_identity_name" {
type = string
default = "redpanda-connect-uai"
description = <<-HELP
The name of user assigned identity for Redpanda Connect.
HELP
}
variable "redpanda_connect_api_identity_name" {
type = string
default = "redpanda-connect-api-uai"
description = <<-HELP
The name of user assigned identity for Redpanda Connect API.
HELP
}
variable "redpanda_operator_identity_name" {
type = string
default = "redpanda-operator-uai"
description = <<-HELP
The name of user assigned identity for Redpanda operator.
HELP
}
###########################################################################
# Storage vars: resource groups and roles
###########################################################################
variable "redpanda_management_storage_account_name" {
type = string
default = "managementa"
description = <<-HELP
Azure Blob Storage account name for Redpanda management storage.
HELP
}
variable "redpanda_management_storage_container_name" {
type = string
default = "managementc"
description = <<-HELP
Name of the storage container for Redpanda management storage
HELP
}
variable "redpanda_tiered_storage_account_name" {
type = string
default = "tieredstoragea"
description = <<-HELP
Azure Blob Storage account name for Redpanda tiered storage.
HELP
}
variable "redpanda_tiered_storage_container_name" {
type = string
default = "tieredstoragec"
description = <<-HELP
Name of the storage container for Redpanda tiered storage
HELP
}
variable "redpanda_management_key_vault_name" {
type = string
default = "rp-vault"
description = <<-HELP
The name of key vault for Redpanda management
HELP
}
variable "redpanda_console_key_vault_name" {
type = string
default = "console-vault"
description = <<-HELP
The name of key vault for Redpanda Console
HELP
}
###########################################################################
# Network vars: vnet, subnets
###########################################################################
variable "vnet_name" {
type = string
default = ""
description = <<-HELP
The name of the network. If empty, a VNET will be created.
HELP
}
variable "vnet_addresses" {
type = list(string)
default = ["10.0.0.0/20"]
description = <<-HELP
The list of IP address prefixes used by vnet.
HELP
}
variable "private_subnets" {
type = map(map(string))
default = {
"system-pod" : {
"cidr" : "10.0.1.0/24",
"name" : "snet-system-pods"
},
"system-vnet" : {
"cidr" : "10.0.2.0/24",
"name" : "snet-system-vnet"
},
"agent-private" : {
"cidr" : "10.0.3.0/24",
"name" : "snet-agent-private"
},
"rp-0-pods" : {
"cidr" : "10.0.4.0/24",
"name" : "snet-rp-0-pods"
},
"rp-0-vnet" : {
"cidr" : "10.0.5.0/24",
"name" : "snet-rp-0-vnet"
},
"rp-1-pods" : {
"cidr" : "10.0.6.0/24",
"name" : "snet-rp-1-pods"
},
"rp-1-vnet" : {
"cidr" : "10.0.7.0/24",
"name" : "snet-rp-1-vnet"
},
"rp-2-pods" : {
"cidr" : "10.0.8.0/24",
"name" : "snet-rp-2-pods"
},
"rp-2-vnet" : {
"cidr" : "10.0.9.0/24",
"name" : "snet-rp-2-vnet"
},
"connect-pod" : {
"cidr" : "10.0.10.0/24",
"name" : "snet-connect-pods"
},
"connect-vnet" : {
"cidr" : "10.0.11.0/24",
"name" : "snet-connect-vnet"
},
"kafka-connect-pod" : {
"cidr" : "10.0.12.0/24",
"name" : "snet-kafka-connect-pods"
},
"kafka-connect-vnet" : {
"cidr" : "10.0.13.0/24",
"name" : "snet-kafka-connect-vnet"
},
}
description = <<-HELP
A list of CIDR ranges to use for the *private* subnets. They needs to be at least /24.
HELP
}
variable "egress_subnets" {
type = map(map(string))
default = {
"agent-public" : {
"cidr" : "10.0.0.0/24",
"name" : "snet-agent-public"
}
}
description = <<-HELP
A list of CIDR ranges to use for the *egress* subnets. They needs to be at least /24.
HELP
}
variable "reserved_subnet_cidrs" {
type = map(string)
default = {
"k8s-service" : "10.0.15.0/24"
}
description = <<-HELP
Reserved CIDRs for AKS
HELP
}
variable "redpanda_security_group_name" {
type = string
default = "redpanda-nsg"
description = <<-HELP
The name of Redpanda cluster security group
HELP
}