Rename gw01.home.foo.sh to dna-gw01.home.foo.sh

This commit is contained in:
Timo Makinen 2021-04-23 08:48:46 +00:00
parent d2cbea9354
commit 9f86ecc099
5 changed files with 4 additions and 4 deletions

View file

@ -20,4 +20,4 @@ network_ether_interfaces:
firewall_src: pf.conf.gw_home firewall_src: pf.conf.gw_home
# ifstated config # ifstated config
ifstated_config: ifstated-home.conf.j2 ifstated_config: ifstated-dna.conf.j2

2
hosts
View file

@ -12,7 +12,7 @@ fsol-gw02.home.foo.sh
git02.home.foo.sh git02.home.foo.sh
[gw] [gw]
gw01.home.foo.sh dna-gw01.home.foo.sh
dna-gw02.home.foo.sh dna-gw02.home.foo.sh
[jenkins] [jenkins]

View file

@ -37,9 +37,9 @@ state backup {
run "/sbin/ifconfig vio1 delete lladdr {{ gw_home_mac }} down" run "/sbin/ifconfig vio1 delete lladdr {{ gw_home_mac }} down"
# flush routes and fix default route # flush routes and fix default route
run "/sbin/route -qn flush" run "/sbin/route -qn flush"
{% if inventory_hostname == "gw01.home.foo.sh" %} {% if inventory_hostname == "dna-gw01.home.foo.sh" %}
run "/sbin/route -qn add default 172.20.21.2" run "/sbin/route -qn add default 172.20.21.2"
{% elif inventory_hostname == "gw02.home.foo.sh" %} {% elif inventory_hostname == "dna-gw02.home.foo.sh" %}
run "/sbin/route -qn add default 172.20.21.1" run "/sbin/route -qn add default 172.20.21.1"
{% endif %} {% endif %}
} }