Rename gw01.home.foo.sh to dna-gw01.home.foo.sh
This commit is contained in:
parent
d2cbea9354
commit
9f86ecc099
5 changed files with 4 additions and 4 deletions
|
@ -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
2
hosts
|
@ -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]
|
||||||
|
|
|
@ -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 %}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue