Roles service-fastd-mesh + service-fastd-intragate

- remove on-up|on-down stanzas from fastd.conf
- update readme
This commit is contained in:
Tobias Hachmer 2017-11-12 14:12:07 +01:00
parent 7a482e195f
commit 07eda681ca
3 changed files with 1 additions and 28 deletions

View file

@ -1,5 +1,3 @@
{% set ip4hex = item.0.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
{% set mac = '023' + item.1.id|string + ip4hex -%}
#
# {{ ansible_managed }}
#
@ -22,16 +20,4 @@ peer group "servers" {
include peers from "peers/services";
}
on up "
ip link set $INTERFACE down
ip link set address {{ mac | hwaddr('linux') }} dev $INTERFACE
ip link set $INTERFACE up
batctl -m {{ item.0.id }}bat if add $INTERFACE
";
on down "
batctl -m {{ item.0.id }}bat if del $INTERFACE
";
status socket "/var/run/fastd-{{ item.0.id }}igvpn-{{ item.1.mtu }}.status";

View file

@ -40,6 +40,7 @@ fastd_secrets:
...
´´´
- Liste `legacy_gateways`
## fastd Secrets

View file

@ -1,5 +1,3 @@
{% set ip4hex = item.0.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
{% set mac = '022' + item.1.id|string + ip4hex -%}
#
# {{ ansible_managed }}
#
@ -29,16 +27,4 @@ peer group "servers" {
include peers from "peers/servers";
}
on up "
ip link set $INTERFACE down
ip link set address {{ mac | hwaddr('linux') }} dev $INTERFACE
ip link set $INTERFACE up
batctl -m {{ item.0.id }}bat if add $INTERFACE
";
on down "
batctl -m {{ item.0.id }}bat if del $INTERFACE
";
status socket "/var/run/fastd-{{ item.0.id }}vpn-{{ item.1.mtu }}.status";