Try to hack it so builders and other multi eth boxes can have interfaces off easily until a real replacement is done.

This commit is contained in:
Stephen Smoogen 2020-06-26 17:53:56 -04:00
parent 040102e73b
commit 414dabc9b9
17 changed files with 21 additions and 6 deletions

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.31
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.32
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.33
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.34
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.35
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,4 @@
eth0_ip: 10.3.169.36
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,4 @@
eth0_ip: 10.3.169.37
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,4 @@
eth0_ip: 10.3.169.38
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.39
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.40
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.41
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.42
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.43
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,4 @@
eth0_ip: 10.3.169.44
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,5 @@
eth0_ip: 10.3.169.45
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -2,4 +2,4 @@
eth0_ip: 10.3.169.46
eth0_ipv4_gw: 10.3.169.254
datacenter: iad2
eth1_off: true

View file

@ -8,7 +8,7 @@ OPTIONS="layer2=1 portno=0"
{% endif %}
{% if item in ansible_ifcfg_infra_net_devices %}
DEFROUTE=yes
GATEWAY="{{ hostvars[inventory_hostname][item + '_ipv4_gw'] }}"
GATEWAY="{{ gw }}"
{% endif %}
{% if hostvars[inventory_hostname].datacenter == 'iad2' %}
DOMAIN="iad2.fedoraproject.org vpn.fedoraproject.org fedoraproject.org"
@ -24,7 +24,11 @@ ONBOOT="no"
{% else %}
IPADDR="{{ hostvars[inventory_hostname][item + '_ip'] }}"
NETMASK="{{ hostvars[inventory_hostname][item + '_nm'] }}"
{% if hostvars[inventory_hostname][item +'_off'] is defined %}
ONBOOT="no"
{% else %}
ONBOOT="yes"
{% fi %}
{% endif %}
TYPE="Ethernet"
DEVICE="{{item}}"