ansible-ffibk/roles/network-fastd/README.md
2017-10-08 09:44:42 +02:00

41 lines
996 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Ansible role network-fastd
Diese Ansible role konfiguriert Netzwerk Interfaces für die definierten fastd Instanzen.
Es wird zwischen node- und intragate-Instanzen unterschieden.
## Interface-Benamung
Node-Interfaces: $mesh.id + VPN + '-' + $mesh.fastd.nodes.instances.xx.mtu, z.B. "mzVPN-1312"
Intragate-Interfaces: $mesh.id + 'ig' + VPN + '-' + $mesh.fastd.intragate.instances.xx.mtu, z.B. "mzigVPN-1312"
## Benötigte Variablen
- Dictionary `meshes`
´´´
meshes:
- id: xx
...
ipv4_network:
...
fastd:
nodes:
instances:
- id: 0 # integer
mtu: # integer
...
intragate:
instances:
- id: 0 # integer
mtu: # integer
...
´´´
- Host Variable `magic`
## MAC-Adressen
Die MAC-Adressen der Interfaces werden aus dem IPv4-Subnetz sowie der `magic`-Nummer des Hosts berechnet.
xxVPN-$mtu prefix: `02:2x` # x = ID der fastd-Instanz
xxigVPN-$mtu prefix: `02:3x` # x = ID der fastd-Instanz