some networks will have multiple gateways

This commit is contained in:
Stephen Smoogen 2020-06-26 17:59:29 -04:00
parent 2e31f43080
commit f73b4ce9ca

View file

@ -8,8 +8,12 @@ OPTIONS="layer2=1 portno=0"
{% endif %}
{% if item in ansible_ifcfg_infra_net_devices %}
DEFROUTE=yes
{% if hostvars[inventory_hostname][item +'_gw'] is defined %}
GATEWAY="{{ hostvars[inventory_hostname][item + '_gw'] }}"
{% else %}
GATEWAY="{{ gw }}"
{% endif %}
{% endif %}
{% if hostvars[inventory_hostname].datacenter == 'iad2' %}
DOMAIN="iad2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
{% else %}