-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvariables.tf
More file actions
103 lines (88 loc) · 2.61 KB
/
variables.tf
File metadata and controls
103 lines (88 loc) · 2.61 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
variable "network_autostart" {
description = "Whether to autostart the libvirt network"
type = bool
default = true
}
variable "network_name" {
description = "Name of the libvirt network"
type = string
default = "default"
}
variable "network_mode" {
description = "Mode of the libvirt network (e.g., nat, route, bridge, open, private)"
type = string
default = "nat"
}
variable "network_domain" {
description = "Domain of the libvirt network"
type = string
default = null
}
variable "network_cidr" {
description = "CIDR blocks for the libvirt network IP configuration"
type = list(string)
default = ["192.168.122.0/24"]
}
variable "network_bridge" {
description = "Bridge name for the libvirt network (optional, generated by libvirt if not specified)"
type = string
default = null
}
variable "network_mtu" {
description = "MTU size for the libvirt network"
type = number
default = 1500
}
variable "network_dns_enabled" {
description = "Whether DNS is enabled for the libvirt network"
type = bool
default = false
}
variable "network_dns_local" {
description = "Whether DNS domain is local-only for the libvirt network"
type = bool
default = false
}
variable "network_dhcp_enabled" {
description = "Whether DHCP is enabled for the libvirt network"
type = bool
default = false
}
variable "network_dhcp_range_start" {
description = "DHCP range start IP address"
type = string
default = null
}
variable "network_dhcp_range_end" {
description = "DHCP range end IP address"
type = string
default = null
}
variable "network_dns_entries" {
description = "Map of DNS entries for the libvirt network (hostname = IP address)"
type = map(string)
default = {}
}
variable "network_routes" {
description = "Map of static routes for the libvirt network (CIDR = gateway, e.g., '10.0.0.0/24' = '10.0.0.1')"
type = map(string)
default = {}
}
variable "network_dns_srv_records" {
description = "List of SRV records to add to libvirt network DNS configuration"
type = list(object({
service = string
protocol = string
domain = string
target = string
port = number # Changed from string to number
priority = number # Changed from string to number
weight = number # Changed from string to number
}))
default = []
}
variable "network_dnsmasq_options" {
type = list(string)
description = "List of dnsmasq options. Each element can be 'value' or 'key=value'"
default = []
}