-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
307 lines (282 loc) · 8.17 KB
/
variables.tf
File metadata and controls
307 lines (282 loc) · 8.17 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
variable "hosturl" {
description = "RouterOS host URL"
type = string
}
variable "username" {
description = "RouterOS username"
type = string
}
variable "password" {
description = "RouterOS password"
type = string
sensitive = true
}
variable "vlans" {
description = "List of VLAN configurations"
type = list(object({
interface = string
name = string
vlan_id = number
mtu = optional(number)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "ip_addresses" {
description = "List of IP address configurations"
type = list(object({
interface = string
address = string
network = optional(string)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "ip_pools" {
description = "List of IP pool configurations"
type = list(object({
name = string
ranges = list(string)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "dhcp_server_networks" {
description = "List of DHCP server network configurations"
type = list(object({
address = string
gateway = string
dns_server = optional(list(string), [])
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "dhcp_servers" {
description = "List of DHCP server configurations"
type = list(object({
address_pool = string
interface = string
name = string
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "dns_records" {
description = "List of DNS records"
type = list(object({
name = string
address = optional(string)
cname = optional(string)
type = string
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "firewall_rules" {
description = "List of firewall rules"
type = list(object({
action = string
chain = string
address_list = optional(string)
address_list_timeout = optional(string)
comment = optional(string)
connection_bytes = optional(string)
connection_limit = optional(string)
connection_mark = optional(string)
connection_nat_state = optional(string)
connection_rate = optional(string)
connection_state = optional(string)
connection_type = optional(string)
content = optional(string)
disabled = optional(bool)
dscp = optional(number)
dst_address = optional(string)
dst_address_list = optional(string)
dst_address_type = optional(string)
dst_limit = optional(string)
dst_port = optional(string)
fragment = optional(bool)
hotspot = optional(string)
hw_offload = optional(bool)
icmp_options = optional(string)
in_bridge_port = optional(string)
in_bridge_port_list = optional(string)
in_interface = optional(string)
in_interface_list = optional(string)
ingress_priority = optional(number)
ipsec_policy = optional(string)
ipv4_options = optional(string)
jump_target = optional(string)
layer7_protocol = optional(string)
limit = optional(string)
log = optional(bool)
log_prefix = optional(string)
nth = optional(string)
out_bridge_port = optional(string)
out_bridge_port_list = optional(string)
out_interface = optional(string)
out_interface_list = optional(string)
packet_mark = optional(string)
packet_size = optional(string)
per_connection_classifier = optional(string)
place_before = optional(string)
port = optional(string)
priority = optional(number)
protocol = optional(string)
psd = optional(string)
random = optional(number)
reject_with = optional(string)
routing_mark = optional(string)
routing_table = optional(string)
src_address = optional(string)
src_address_list = optional(string)
src_address_type = optional(string)
src_mac_address = optional(string)
src_port = optional(string)
tcp_flags = optional(string)
tcp_mss = optional(string)
time = optional(string)
tls_host = optional(string)
ttl = optional(string)
}))
default = []
}
variable "firewall_address_lists" {
description = "List of address lists"
type = list(object({
list = string
address = string
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "firewall_nat_rules" {
description = "List of NAT rules"
type = list(object({
action = string
chain = string
src_address = optional(string)
dst_address = optional(string)
out_interface = optional(string)
in_interface_list = optional(string)
to_addresses = optional(string)
to_ports = optional(string)
protocol = optional(string)
dst_port = optional(string)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "interface_lists" {
description = "List of interface lists"
type = list(object({
name = string
comment = optional(string, "tofu;;;")
members = optional(list(string), [])
}))
default = []
}
variable "vxlan_interfaces" {
description = "List of VXLAN interfaces"
type = list(object({
name = string
vni = number
mtu = optional(number)
comment = optional(string, "tofu;;;")
disabled = optional(bool)
hw = optional(bool)
}))
default = []
}
variable "vxlan_vteps" {
description = "List of VXLAN VTEPs"
type = list(object({
interface = string
remote_ip = string
port = optional(number)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "bgp_connections" {
description = "List of BGP connections"
type = list(object({
name = string
as = number
remote = object({
address = string
as = number
})
local = object({
role = string
address = string
})
connect = optional(bool)
listen = optional(bool)
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "veths" {
description = "List of veth interfaces"
type = list(object({
name = string
address = list(string)
gateway = string
comment = optional(string, "tofu;;;")
}))
default = []
}
variable "bridges" {
description = "List of bridge interfaces"
type = list(object({
name = string
comment = optional(string, "tofu;;;")
ports = optional(list(string), [])
}))
default = []
}
variable "files" {
description = "List of files to upload to the RouterOS device"
type = list(object({
name = string
contents = string
}))
default = []
}
variable "container_mounts" {
description = "List of container mounts"
type = list(object({
name = string
src = string
dst = string
}))
default = []
}
variable "container_config" {
description = "Container configurations"
type = object({
registry_url = optional(string, "https://registry-1.docker.io")
ram_high = optional(string, "128")
tmpdir = optional(string, "usb1/tmp")
layer_dir = optional(string)
})
}
variable "containers" {
description = "List of containers"
type = list(object({
remote_image = string
interface = string
start_on_boot = optional(bool, true)
stop_signal = optional(string, "15-SIGTERM")
root_dir = optional(string)
mounts = optional(list(string), [])
logging = optional(bool, true)
hostname = string
running = optional(bool, true)
user = optional(string)
cmd = optional(string)
comment = optional(string, "tofu;;;")
}))
default = []
}