Skip to content

Commit 1f39118

Browse files
committed
Update doc with terraform-v12
- update routes doc - update hosts and forwarders doc - update cpu doc
1 parent a1ce0dc commit 1f39118

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

website/docs/r/domain.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ The optional `cpu` block allows to configure CPU mode. Example:
479479
```hcl
480480
resource "libvirt_domain" "my_machine" {
481481
...
482-
cpu {
482+
cpu = {
483483
mode = "host-passthrough"
484484
}
485485
}

website/docs/r/network.markdown

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,30 @@ resource "libvirt_network" "kube_network" {
5454
5555
# (Optional) one or more DNS forwarder entries. One or both of
5656
# "address" and "domain" must be specified. The format is:
57-
# forwarders = [
58-
# {
57+
# forwarders {
5958
# address = "my address"
6059
# domain = "my domain"
61-
# }
62-
# ]
60+
# }
61+
#
6362
6463
# (Optional) one or more DNS host entries. Both of
6564
# "ip" and "hostname" must be specified. The format is:
66-
# hosts = [
67-
# {
65+
# hosts {
6866
# hostname = "my_hostname"
6967
# ip = "my.ip.address.1"
70-
# },
71-
# {
68+
# }
69+
# hosts {
7270
# hostname = "my_hostname"
7371
# ip = "my.ip.address.2"
74-
# },
75-
# ]
72+
# }
73+
#
7674
7775
# (Optional) one or more static routes.
7876
# "cidr" and "gateway" must be specified. The format is:
79-
# routes = [
80-
# {
77+
# routes {
8178
# cidr = "10.17.0.0/16"
8279
# gateway = "10.18.0.2"
83-
# },
84-
# ]
80+
# }
8581
}
8682
}
8783
```
@@ -142,7 +138,7 @@ An advanced example of round-robin DNS (using DNS host templates) follows:
142138
resource "libvirt_network" "my_network" {
143139
...
144140
dns = {
145-
hosts = [ "${flatten(data.libvirt_network_dns_host_template.hosts.*.rendered)}" ]
141+
hosts { "${flatten(data.libvirt_network_dns_host_template.hosts.*.rendered)}" }
146142
}
147143
...
148144
}

0 commit comments

Comments
 (0)