fix logic to work with eno interfaces and add in logic for dual datacenters
This commit is contained in:
parent
189194a7d1
commit
a93c9169f5
2 changed files with 7 additions and 1 deletions
|
@ -99,7 +99,7 @@
|
|||
- apply interface-changes
|
||||
when:
|
||||
- virthost is not defined
|
||||
- item.startswith(('eth','br','enc','em'))
|
||||
- item.startswith(('eth','br','enc','em','eno'))
|
||||
- hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['type'] == 'ether'
|
||||
- hostvars[inventory_hostname]['ansible_' + item.replace('-','_')]['active']
|
||||
- ansible_distribution_major_version|int >=7
|
||||
|
|
|
@ -8,7 +8,13 @@ OPTIONS="layer2=1 portno=0"
|
|||
{% endif %}
|
||||
{% if item in ansible_ifcfg_infra_net_devices %}
|
||||
GATEWAY="{{gw}}"
|
||||
{% if hostvars[inventory_hostname].datacenter == 'phx2' %}
|
||||
DOMAIN="phx2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
|
||||
{% if hostvars[inventory_hostname].datacenter == 'iad2' %}
|
||||
DOMAIN="iad2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
|
||||
{% else %}
|
||||
DOMAIN="vpn.fedoraproject.org fedoraproject.org"
|
||||
{% endif %}
|
||||
DNS1="{{ dns1 }}"
|
||||
DNS2="{{ dns2 }}"
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue