-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
365 lines (318 loc) · 7.45 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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# certbot
variable "certbot" {
type = object(
{
agree_tos = bool
staging = optional(bool)
email = string
http_01_port = optional(number)
}
)
description = "Certbot config"
default = null
}
# lldap
variable "image" {
type = object(
{
name = optional(string, "docker.io/nitnelave/lldap")
version = optional(string, "latest")
}
)
description = "Lldap container image"
default = {
name = "docker.io/nitnelave/lldap"
version = "stable"
}
nullable = false
}
variable "external_fqdn" {
type = string
description = "FQDN to access Lldap"
}
variable "jwt_secret" {
type = string
description = "Lldap JWT secret"
sensitive = true
}
variable "ldap_user_pass" {
type = string
description = "Lldap user password"
sensitive = true
}
variable "ldap_base_dn" {
type = string
description = "Lldap base distinguished name (DN)"
}
variable "port" {
type = number
description = "Ldap port"
default = null
}
variable "cidr_sources" {
type = list(string)
description = "Cidr of sources allowed in firewall to lldap port"
default = []
nullable = false
}
variable "cpus_limit" {
type = number
description = "Number of CPUs to limit the container"
default = 0
}
variable "memory_limit" {
type = string
description = "Amount of memory to limit the container"
default = ""
nullable = false
}
variable "backup_script_additiona_block" {
type = string
description = "Additional block to add to backup script"
default = ""
nullable = false
}
variable "backup_task_on_calendar" {
type = string
description = "Backup task on calendar value. See systemd.time(7)"
default = "daily"
nullable = false
}
variable "envvars" {
type = map(string)
sensitive = true
description = "Additional environment variables for lldap"
default = {}
nullable = false
}
# butane custom
variable "butane_snippets_additional" {
type = list(string)
default = []
description = "Additional butane snippets"
nullable = false
}
# butane common
variable "ssh_authorized_key" {
type = string
description = "Authorized ssh key for core user"
}
variable "nameservers" {
type = list(string)
description = "List of nameservers for VMs"
default = null
}
variable "timezone" {
type = string
description = "Timezone for VMs as listed by `timedatectl list-timezones`"
default = null
}
variable "rollout_wariness" {
type = string
description = "Wariness to update, 1.0 (very cautious) to 0.0 (very eager)"
default = null
}
variable "periodic_updates" {
type = object(
{
time_zone = optional(string, "")
windows = list(
object(
{
days = list(string)
start_time = string
length_minutes = string
}
)
)
}
)
description = <<-TEMPLATE
Only reboot for updates during certain timeframes
{
time_zone = "localtime"
windows = [
{
days = ["Sat"],
start_time = "23:30",
length_minutes = "60"
},
{
days = ["Sun"],
start_time = "00:30",
length_minutes = "60"
}
]
}
TEMPLATE
default = null
}
variable "keymap" {
type = string
description = "Keymap"
default = null
}
variable "etc_hosts" {
type = list(
object(
{
ip = string
hostname = string
fqdn = string
}
)
)
description = "/etc/host list"
default = null
}
variable "etc_hosts_extra" {
type = string
description = "/etc/host extra block"
default = null
}
variable "additional_rpms" {
type = object(
{
cmd_pre = optional(list(string), [])
list = optional(list(string), [])
cmd_post = optional(list(string), [])
}
)
description = "Additional rpms to install during boot using rpm-ostree, along with any pre or post command"
default = {
cmd_pre = []
list = []
cmd_post = []
}
nullable = false
}
variable "interface_name" {
type = string
description = "Network interface name"
default = null
}
variable "sync_time_with_host" {
type = bool
description = "Sync guest time with the kvm host"
default = null
}
# libvirt node
variable "fqdn" {
type = string
description = "Node FQDN"
}
variable "cidr_ip_address" {
type = string
description = "CIDR IP Address. Ex: 192.168.1.101/24"
validation {
condition = can(cidrhost(var.cidr_ip_address, 1))
error_message = "Check cidr_ip_address format"
}
default = null
}
variable "mac" {
type = string
description = "Mac address"
default = null
}
variable "cpu_mode" {
type = string
description = "Libvirt default cpu mode for VMs"
default = null
}
variable "vcpu" {
type = number
description = "Node default vcpu count"
default = null
}
variable "memory" {
type = number
description = "Node default memory in MiB"
default = 512
nullable = false
}
variable "machine" {
type = string
description = "The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template"
default = null
}
variable "root_volume_pool" {
type = string
description = "Node default root volume pool"
default = null
}
variable "root_volume_size" {
type = number
description = "Node default root volume size in bytes"
default = null
}
variable "root_base_volume_name" {
type = string
description = "Node default base root volume name"
nullable = false
}
variable "root_base_volume_pool" {
type = string
description = "Node default base root volume pool"
default = null
}
variable "log_volume_pool" {
type = string
description = "Node default log volume pool"
default = null
}
variable "log_volume_size" {
type = number
description = "Node default log volume size in bytes"
default = null
}
variable "data_volume_pool" {
type = string
description = "Node default data volume pool"
default = null
}
variable "data_volume_size" {
type = number
description = "Node default data volume size in bytes"
default = null
}
variable "backup_volume_pool" {
type = string
description = "Node default backup volume pool"
default = null
}
variable "backup_volume_size" {
type = number
description = "Node default backup volume size in bytes"
default = null
}
variable "ignition_pool" {
type = string
description = "Default ignition files pool"
default = null
}
variable "wait_for_lease" {
type = bool
description = "Wait for network lease"
default = null
}
variable "autostart" {
type = bool
description = "Autostart with libvirt host"
default = null
}
variable "network_bridge" {
type = string
description = "Libvirt default network bridge name for VMs"
default = null
}
variable "network_id" {
type = string
description = "Libvirt default network id for VMs"
default = null
}
variable "network_name" {
type = string
description = "Libvirt default network name for VMs"
default = null
}