File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,13 @@ should be a dict containing the following items:
26
26
` libvirt_host_networks ` is a list of networks to define and start. Each item
27
27
should be a dict containing the following items:
28
28
- ` name ` The name of the network.
29
- - ` mode ` The forwarding mode of the network, currently only ` bridge ` is
30
- supported.
29
+ - ` mode ` The forwarding mode of the network, 'bridge', 'route' and 'nat' are supported.
31
30
- ` bridge ` The name of the bridge interface for this network.
31
+ - ` ip ` IP address of the virtual bridge, mandatory for 'route' and 'nat' mode.
32
+ - ` netmask ` Netmask of the virtual bridge, mandatory for 'route' and 'nat' mode.
33
+ - ` domain ` DNS domaine name for 'route' and 'nat' mode, default to the network name (optional).
34
+ - ` dhcp_start ` First IP of the DHCP range in 'route' or 'nat' mode (optional).
35
+ - ` dhcp_end ` Last IP of the DHCP range in 'route' or 'nat' mode (optional).
32
36
33
37
` libvirt_host_require_vt ` is whether to require that Intel Virtualisation
34
38
Technology (VT) is enabled in order to run this role. While this provides
@@ -91,6 +95,14 @@ Example Playbook
91
95
- name: br-example
92
96
mode: bridge
93
97
bridge: br-example
98
+ - name: brnat-example
99
+ mode: nat
100
+ bridge: brnat-example
101
+ domain: example.local
102
+ ip: 192.168.133.254
103
+ netmask: 255.255.255.0
104
+ dhcp_start: 192.168.133.100
105
+ dhcp_end: 192.168.133.200
94
106
95
107
Author Information
96
108
------------------
You can’t perform that action at this time.
0 commit comments