File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ The optional `cpu` block allows to configure CPU mode. Example:
479
479
``` hcl
480
480
resource "libvirt_domain" "my_machine" {
481
481
...
482
- cpu {
482
+ cpu = {
483
483
mode = "host-passthrough"
484
484
}
485
485
}
Original file line number Diff line number Diff line change @@ -54,34 +54,30 @@ resource "libvirt_network" "kube_network" {
54
54
55
55
# (Optional) one or more DNS forwarder entries. One or both of
56
56
# "address" and "domain" must be specified. The format is:
57
- # forwarders = [
58
- # {
57
+ # forwarders {
59
58
# address = "my address"
60
59
# domain = "my domain"
61
- # }
62
- # ]
60
+ # }
61
+ #
63
62
64
63
# (Optional) one or more DNS host entries. Both of
65
64
# "ip" and "hostname" must be specified. The format is:
66
- # hosts = [
67
- # {
65
+ # hosts {
68
66
# hostname = "my_hostname"
69
67
# ip = "my.ip.address.1"
70
- # },
71
- # {
68
+ # }
69
+ # hosts {
72
70
# hostname = "my_hostname"
73
71
# ip = "my.ip.address.2"
74
- # },
75
- # ]
72
+ # }
73
+ #
76
74
77
75
# (Optional) one or more static routes.
78
76
# "cidr" and "gateway" must be specified. The format is:
79
- # routes = [
80
- # {
77
+ # routes {
81
78
# cidr = "10.17.0.0/16"
82
79
# gateway = "10.18.0.2"
83
- # },
84
- # ]
80
+ # }
85
81
}
86
82
}
87
83
```
@@ -142,7 +138,7 @@ An advanced example of round-robin DNS (using DNS host templates) follows:
142
138
resource "libvirt_network" "my_network" {
143
139
...
144
140
dns = {
145
- hosts = [ "${flatten(data.libvirt_network_dns_host_template.hosts.*.rendered)}" ]
141
+ hosts { "${flatten(data.libvirt_network_dns_host_template.hosts.*.rendered)}" }
146
142
}
147
143
...
148
144
}
You can’t perform that action at this time.
0 commit comments