diff options
author | Eamonn O'Toole <eamonn.otoole@hpe.com> | 2017-02-02 15:45:20 +0000 |
---|---|---|
committer | Eamonn O'Toole <eamonn.otoole@hpe.com> | 2017-02-08 11:38:56 +0000 |
commit | b55887383ba7914ee484dc65e89f0f829d5dbb6e (patch) | |
tree | 30d02e2a35e4cbe0ac270d12e618e34de12c76ee /docs/providers/libvirt | |
parent | b43db5136f5d80267a8172289af3133e4ab241ab (diff) | |
download | terraform-provider-libvirt-b55887383ba7914ee484dc65e89f0f829d5dbb6e.tar terraform-provider-libvirt-b55887383ba7914ee484dc65e89f0f829d5dbb6e.tar.gz |
Add DNS forwarder blocks to network resource definition
There can be one or more of these optional blocks. Each block
looks as follows:
dns_forwarder {
address = "my address"
domain = "my domain"
}
One or both of "address" and "domain" can be specified in each block.
Diffstat (limited to 'docs/providers/libvirt')
-rw-r--r-- | docs/providers/libvirt/r/network.markdown | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/providers/libvirt/r/network.markdown b/docs/providers/libvirt/r/network.markdown index 6b784df2..c27bdbcc 100644 --- a/docs/providers/libvirt/r/network.markdown +++ b/docs/providers/libvirt/r/network.markdown @@ -31,6 +31,13 @@ resource "libvirt_network" "network1" { # which will be used to construct the virtual network. # (only necessary in "bridge" mode) # bridge = "br7" + + # (Optional) one or more DNS forwarder entries. One or both of + # "address" and "domain" must be specified. The format is: + # dns_forwarder { + # address = "my address" + # domain = "my domain" + # } } ``` @@ -63,5 +70,36 @@ The following arguments are supported: * `bridge` - (Optional) The bridge device defines the name of a bridge device which will be used to construct the virtual network (when not provided, it will be automatically obtained by libvirt in `none`, `nat` and `route` modes). +* `dns_forwarder` - (Optional) a DNS forwarder entry block. You can have + one or mode of these blocks in your network definition. You must specify one or + both of `address` and `domain`. You can use either of the forms below to + specify dns_forwarders: + +``` +resource "libvirt_network" "my_network" { + ... + dns_forwarder { + address = "my address" + } + dns_forwarder { + address = "my address 1" + domain = "my domain" + } +} +``` +``` +resource "libvirt_network" "my_network" { + ... + dns_forwarder = [ + { + address = "my address" + }, + { + address = "my address 1" + domain = "my domain + } + ] +} +``` |