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

@@ -0,0 +1,6 @@
ifconfig-push 172.30.0.210 255.255.255.240
{% for net in firemon_networks %}
iroute {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }}
{% endfor %}
push "route 172.30.0.0 255.255.255.192 172.30.0.209"
push "route 172.31.0.0 255.255.255.224 172.30.0.209"