Skip to content

Commit 50a5506

Browse files
authored
Merge pull request #643 from orbatschow/patch-1
Update network.markdown
2 parents fc4f303 + 798900a commit 50a5506

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

website/docs/r/network.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ resource "libvirt_network" "kube_network" {
3939
# mtu = 9000
4040
4141
# (Optional) DNS configuration
42-
dns = {
42+
dns {
4343
# (Optional, default false)
4444
# Set to true, if no other option is specified and you still want to
4545
# enable dns.
46-
enable = true
46+
enabled = true
4747
# (Optional, default false)
4848
# true: DNS requests under this domain will only be resolved by the
4949
# virtual network's own DNS server
@@ -137,7 +137,7 @@ An advanced example of round-robin DNS (using DNS host templates) follows:
137137
```hcl
138138
resource "libvirt_network" "my_network" {
139139
...
140-
dns = {
140+
dns {
141141
hosts { flatten(data.libvirt_network_dns_host_template.hosts.*.rendered) }
142142
}
143143
...
@@ -163,9 +163,9 @@ data "libvirt_network_dns_srv_template" "etcd_cluster" {
163163
164164
resource "libvirt_network" "k8snet" {
165165
...
166-
dns = [{
166+
dns {
167167
srvs = [ flatten(data.libvirt_network_dns_srv_template.etcd_cluster.*.rendered) ]
168-
}]
168+
}
169169
...
170170
}
171171
```
@@ -179,7 +179,7 @@ resource "libvirt_network" "k8snet" {
179179
mode = "nat"
180180
domain = "k8s.local"
181181
addresses = ["10.17.3.0/24"]
182-
dhcp = {
182+
dhcp {
183183
enabled = true
184184
}
185185
```

0 commit comments

Comments
 (0)