-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
297 lines (289 loc) · 9.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
# Contains all the variables used in this module.
variable "infrastructure" {
type = object({
name = string
http_loadbalancer_name = string
openvpn_loadbalancer_address = string
freeradius_loadbalancer_address = string
cluster = object({
name = string
endpoint = string
access_token = string
ca_certificate = string
nodes_cidr_range = string
pods_cidr_range = string
services_cidr_range = string
})
database = object({
enabled = bool
sslmode = string
ca_cert = string
client_cert = string
client_key = string
username = string
password = string
name = string
host = string
})
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "kubernetes_services" {
type = object({
use_cert_manger = bool
cert_manager_link = string
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "ow_cluster_ready" {
type = bool
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "ow_kubectl_ready" {
type = bool
default = false
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "openwisp_services" {
type = object({
use_openvpn = bool
use_freeradius = bool
setup_database = bool
setup_fresh = bool
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "persistent_data" {
type = object({
nfs_server = object({
internal_ip = string
limit_cpu = number
requests_cpu = number
limit_memory = string
requests_memory = string
})
persistent_disk_name = string
persistent_disk_type = string
persistent_disk_size = number
reclaim_policy = string
postgres_storage_size = string
sslcert_storage_size = string
media_storage_size = string
static_storage_size = string
html_storage_size = string
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "kubernetes_configmap" {
type = object({
DASHBOARD_DOMAIN = string
CONTROLLER_DOMAIN = string
RADIUS_DOMAIN = string
TOPOLOGY_DOMAIN = string
EMAIL_DJANGO_DEFAULT = string
DJANGO_SECRET_KEY = string
DJANGO_ALLOWED_HOSTS = string
TZ = string
CERT_ADMIN_EMAIL = string
SSL_CERT_MODE = string
SET_RADIUS_TASKS = bool
SET_TOPOLOGY_TASKS = bool
DB_ENGINE = string
DB_PORT = number
DB_OPTIONS = string
DJANGO_X509_DEFAULT_CERT_VALIDITY = number
DJANGO_X509_DEFAULT_CA_VALIDITY = number
DJANGO_CORS_ORIGIN_ALLOW_ALL = bool
DJANGO_LANGUAGE_CODE = string
DJANGO_SENTRY_DSN = string
DJANGO_LEAFET_CENTER_X_AXIS = number
DJANGO_LEAFET_CENTER_Y_AXIS = number
DJANGO_LEAFET_ZOOM = number
DJANGO_LOG_LEVEL = string
EMAIL_BACKEND = string
EMAIL_HOST_PORT = number
EMAIL_HOST_USER = string
EMAIL_HOST_PASSWORD = string
EMAIL_HOST_TLS = bool
POSTFIX_ALLOWED_SENDER_DOMAINS = string
POSTFIX_MYHOSTNAME = string
POSTFIX_DESTINATION = string
POSTFIX_MESSAGE_SIZE_LIMIT = number
POSTFIX_MYNETWORKS = string
POSTFIX_RELAYHOST_TLS_LEVEL = string
POSTFIX_RELAYHOST = string
POSTFIX_RELAYHOST_USERNAME = string
POSTFIX_RELAYHOST_PASSWORD = string
FREERADIUS_ORGANIZATION = string
FREERADIUS_KEY = string
FREERADIUS_CLIENTS = string
CRON_DELETE_OLD_RADACCT = number
CRON_DELETE_OLD_POSTAUTH = number
CRON_CLEANUP_STALE_RADACCT = number
CRON_DELETE_OLD_USERS = number
NGINX_HTTP2 = string
NGINX_CLIENT_BODY_SIZE = string
NGINX_IP6_STRING = string
NGINX_IP6_80_STRING = string
NGINX_ADMIN_ALLOW_NETWORK = string
NGINX_SERVER_NAME_HASH_BUCKET = number
NGINX_SSL_CONFIG = string
NGINX_80_CONFIG = string
NGINX_GZIP_SWITCH = string
NGINX_GZIP_LEVEL = number
NGINX_GZIP_PROXIED = string
NGINX_GZIP_MIN_LENGTH = number
NGINX_GZIP_TYPES = string
NGINX_HTTPS_ALLOWED_IPS = string
NGINX_HTTP_ALLOW = bool
NGINX_CUSTOM_FILE = bool
NINGX_REAL_REMOTE_ADDR = string
VPN_ORG = string
VPN_NAME = string
VPN_CLIENT_NAME = string
X509_NAME_CA = string
X509_NAME_CERT = string
X509_COUNTRY_CODE = string
X509_STATE = string
X509_CITY = string
X509_ORGANIZATION_NAME = string
X509_ORGANIZATION_UNIT_NAME = string
X509_EMAIL = string
X509_COMMON_NAME = string
EMAIL_HOST = string
REDIS_HOST = string
DASHBOARD_APP_SERVICE = string
CONTROLLER_APP_SERVICE = string
RADIUS_APP_SERVICE = string
TOPOLOGY_APP_SERVICE = string
DEBUG_MODE = bool
DASHBOARD_APP_PORT = number
CONTROLLER_APP_PORT = number
RADIUS_APP_PORT = number
TOPOLOGY_APP_PORT = number
DASHBOARD_URI = string
POSTFIX_DEBUG_MYNETWORKS = string
EXPORT_DIR = string
EXPORT_OPTS = string
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}
variable "openwisp_deployments" {
type = object({
image_pull_policy = string
restart_policy = string
dashboard = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
controller = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
radius = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
topology = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
nginx = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
postgres = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
postfix = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
freeradius = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
openvpn = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
openvpn = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
celery = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
celerybeat = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
redis = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
websocket = object({
replicas = number
image = string
limit_cpu = number
request_cpu = number
limit_memory = string
request_memory = string
})
})
description = "Find documentation here: https://github.com/atb00ker/terraform-kubernetes-openwisp/blob/master/docs/input.md."
}