Rename fastd instance intragate to backbone

This commit is contained in:
Tobias Hachmer 2018-07-25 14:08:45 +02:00
parent f792b4bdaf
commit d4a4f576c9
15 changed files with 38 additions and 38 deletions

View file

@ -58,14 +58,14 @@ Diese Liste ist quasi das Herzstück zur Konfiguration der Mesh-spezifischen Par
|fastd.nodes.instances[x].peers.repo|Key|https://github.com/freifunk-mwu/peers-ffmz.git|URL||
|fastd.nodes.instances[x].peers.version|Key|master|string||
|fastd.nodes.instances[x].pass|Key|fastd/mzvpn|string||
|fastd.intragate|Dictionary||||
|fastd.intragate.instances|List|||Jeder Listeneintrag ist ein Dictionary; Instanzen für Intragate-Kommunikation|
|fastd.intragate.instances[x].id|Key|0|integer||
|fastd.intragate.instances[x].mtu|Key|1406|integer||
|fastd.intragate.instances[x].peers|Dictionary||||
|fastd.intragate.instances[x].peers.repo|Key|https://github.com/freifunk-mwu/peers-ffmz.git|URL||
|fastd.intragate.instances[x].peers.version|Key|master|string||
|fastd.intragate.instances[x].pass|Key|fastd/mzigvpn|string||
|fastd.backbone|Dictionary||||
|fastd.backbone.instances|List|||Jeder Listeneintrag ist ein Dictionary; Instanzen für Intra-Server-Kommunikation|
|fastd.backbone.instances[x].id|Key|0|integer||
|fastd.backbone.instances[x].mtu|Key|1406|integer||
|fastd.backbone.instances[x].peers|Dictionary||||
|fastd.backbone.instances[x].peers.repo|Key|https://github.com/freifunk-mwu/ffmz-infrastructure-peers.git|URL||
|fastd.backbone.instances[x].peers.version|Key|master|string||
|fastd.backbone.instances[x].pass|Key|fastd/mzigvpn|string||
|dns|Dictionary||||
|dns.master|Key|fd37:b4dc:4b1e::a25:103|string; IP-Adresse|DNS-Master IP|
|dns.forward_zones|List||||

View file

@ -63,7 +63,7 @@ meshes:
repo: https://github.com/freifunk-mwu/peers-ffmz.git
version: master
pass: fastd/mzvpn
intragate:
backbone:
instances:
- id: 0
mtu: 1406
@ -122,7 +122,7 @@ meshes:
repo: https://github.com/freifunk-mwu/peers-ffwi.git
version: master
pass: fastd/wivpn
intragate:
backbone:
instances:
- id: 0
mtu: 1406

View file

@ -25,7 +25,7 @@
- service-radvd
- service-fastd
- service-fastd-mesh
- service-fastd-intragate
- service-fastd-backbone
- service-tinc
- service-bird
- service-bird-icvpn

View file

@ -30,7 +30,7 @@ meshes:
- id: 0 # integer
mtu: # integer
...
intragate:
backbone:
instances:
- id: 0 # integer
mtu: # integer

View file

@ -7,7 +7,7 @@
auto {{ item.id }}bat
iface {{ item.id }}bat
hwaddress {{ mac | hwaddr('linux') }}
batman-ifaces {{ item.id }}0 {% for instance in item.fastd.nodes.instances %}{{ item.id }}vpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %} {% for instance in item.fastd.intragate.instances %}{{ item.id }}igvpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %}
batman-ifaces {{ item.id }}0 {% for instance in item.fastd.nodes.instances %}{{ item.id }}vpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %} {% for instance in item.fastd.backbone.instances %}{{ item.id }}igvpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %}
batman-hop-penalty {{ item.batman.hop_penalty }}
post-up /usr/sbin/batctl -m $IFACE it {{ item.batman.it }}
post-up /usr/sbin/batctl -m $IFACE gw {{ item.batman.gw }}

View file

@ -2,11 +2,11 @@
Diese Ansible role konfiguriert Netzwerk Interfaces für die definierten fastd Instanzen.
Es wird zwischen node- und intragate-Instanzen unterschieden.
Es wird zwischen node- und backbone-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"
- Backbone-Interfaces: _$mesh.id_ + 'ig' + vpn + '-' + _$mesh.fastd.backbone.instances.xx.mtu_, z.B. "mzigvpn-1312"
## Benötigte Variablen
@ -24,7 +24,7 @@ meshes:
- id: 0 # integer
mtu: # integer
...
intragate:
backbone:
instances:
- id: 0 # integer
mtu: # integer

View file

@ -8,14 +8,14 @@
- "{{ meshes }}"
- fastd.nodes.instances
- name: create fastd intragate interfaces
- name: create fastd backbone interfaces
template:
src: fastd-intragate.j2
src: fastd-backbone.j2
dest: "/etc/network/interfaces.d/{{ item.0.id }}igvpn-{{ item.1.mtu }}"
notify: reload network interfaces
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
- name: flush handlers
meta: flush_handlers

View file

@ -1,4 +1,4 @@
# Ansible role service-fastd-intragate
# Ansible role service-fastd-backbone
Diese Ansible role konfiguriert die fastd-Instanz für die Intra-Server Kommunikation.
@ -20,7 +20,7 @@ meshes:
...
site_number: # integer
fastd:
nodes:
backbone:
instances:
- id: 0 # integer
mtu: # integer

View file

@ -1,8 +1,8 @@
---
- name: restart fastd intragate instances
- name: restart fastd backbone instances
systemd:
name: "fastd@{{ item.0.id }}igvpn-{{ item.1.mtu }}"
state: restarted
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances

View file

@ -1,14 +1,14 @@
---
- name: create fastd intragate directories
- name: create fastd backbone directories
file:
path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}"
state: directory
mode: 0755
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
- name: create fastd peer intragate directories
- name: create fastd peer backbone directories
file:
path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers"
state: directory
@ -17,9 +17,9 @@
group: admin
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
- name: clone fastd peer intragate repos
- name: clone fastd peer backbone repos
git:
repo: "{{ item.1.peers.repo }}"
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers"
@ -27,26 +27,26 @@
update: no
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
become: false
- name: template fastd mesh config
- name: template fastd backbone config
template:
src: fastd-intragate.conf.j2
src: fastd-backbone.conf.j2
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/fastd.conf"
notify: restart fastd intragate instances
notify: restart fastd backbone instances
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
- name: write fastd intragate secret
- name: write fastd backbone secret
template:
src: fastd-secret.conf.j2
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/secret.conf"
notify: restart fastd intragate instances
notify: restart fastd backbone instances
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances
- name: configure systemd unit fastd@
systemd:
@ -55,4 +55,4 @@
state: started
with_subelements:
- "{{ meshes }}"
- fastd.intragate.instances
- fastd.backbone.instances

View file

@ -12,7 +12,7 @@ Diese Ansible role konfiguriert die fastd-Instanz für die Knoten Kommunikation.
## Instanz-Benamung
- Node-Instanzen: _$mesh.id_ + vpn + '-' + _$mesh.fastd.nodes.instances.xx.mtu_, z.B. "mzvpn-1312"
- Intragate-Instanzen: _$mesh.id_ + 'ig' + vpn + '-' + _$mesh.fastd.intragate.instances.xx.mtu_, z.B. "mzigvpn-1312"
- Backbone-Instanzen: _$mesh.id_ + 'ig' + vpn + '-' + _$mesh.fastd.backbone.instances.xx.mtu_, z.B. "mzigvpn-1312"
## Benötigte Variablen