File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ resource "libvirt_network" "kube_network" {
39
39
# mtu = 9000
40
40
41
41
# (Optional) DNS configuration
42
- dns = {
42
+ dns {
43
43
# (Optional, default false)
44
44
# Set to true, if no other option is specified and you still want to
45
45
# enable dns.
46
- enable = true
46
+ enabled = true
47
47
# (Optional, default false)
48
48
# true: DNS requests under this domain will only be resolved by the
49
49
# virtual network's own DNS server
@@ -137,7 +137,7 @@ An advanced example of round-robin DNS (using DNS host templates) follows:
137
137
``` hcl
138
138
resource "libvirt_network" "my_network" {
139
139
...
140
- dns = {
140
+ dns {
141
141
hosts { flatten(data.libvirt_network_dns_host_template.hosts.*.rendered) }
142
142
}
143
143
...
@@ -163,9 +163,9 @@ data "libvirt_network_dns_srv_template" "etcd_cluster" {
163
163
164
164
resource "libvirt_network" "k8snet" {
165
165
...
166
- dns = [ {
166
+ dns {
167
167
srvs = [ flatten(data.libvirt_network_dns_srv_template.etcd_cluster.*.rendered) ]
168
- }]
168
+ }
169
169
...
170
170
}
171
171
```
@@ -179,7 +179,7 @@ resource "libvirt_network" "k8snet" {
179
179
mode = "nat"
180
180
domain = "k8s.local"
181
181
addresses = ["10.17.3.0/24"]
182
- dhcp = {
182
+ dhcp {
183
183
enabled = true
184
184
}
185
185
```
You can’t perform that action at this time.
0 commit comments