roles/dch-openvpn-server: Use firemon_networks

The routes to FireMon networks are now defined using the
`firemon_networks` Ansible variable. The global `iroute` and
client-specific `route` options are generated from the CIDR blocks
specified in this list.
This commit is contained in:
2018-08-26 17:03:54 -05:00
parent 88dd80e6fd
commit 07356697c8
3 changed files with 9 additions and 9 deletions

View File

@@ -12,9 +12,9 @@ dh dh2048.pem
topology subnet
push "topology subnet"
ifconfig 172.30.0.209 255.255.255.240
route 192.168.0.0 255.255.0.0 172.30.0.210
route 172.16.0.0 255.255.240.0 172.30.0.210
route 172.28.33.0 255.255.255.0 172.30.0.210
{% for net in firemon_networks %}
route {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }} 172.30.0.210
{% endfor %}
client-to-client
client-config-dir clients