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.repo|Key|https://github.com/freifunk-mwu/peers-ffmz.git|URL||
|fastd.nodes.instances[x].peers.version|Key|master|string|| |fastd.nodes.instances[x].peers.version|Key|master|string||
|fastd.nodes.instances[x].pass|Key|fastd/mzvpn|string|| |fastd.nodes.instances[x].pass|Key|fastd/mzvpn|string||
|fastd.intragate|Dictionary|||| |fastd.backbone|Dictionary||||
|fastd.intragate.instances|List|||Jeder Listeneintrag ist ein Dictionary; Instanzen für Intragate-Kommunikation| |fastd.backbone.instances|List|||Jeder Listeneintrag ist ein Dictionary; Instanzen für Intra-Server-Kommunikation|
|fastd.intragate.instances[x].id|Key|0|integer|| |fastd.backbone.instances[x].id|Key|0|integer||
|fastd.intragate.instances[x].mtu|Key|1406|integer|| |fastd.backbone.instances[x].mtu|Key|1406|integer||
|fastd.intragate.instances[x].peers|Dictionary|||| |fastd.backbone.instances[x].peers|Dictionary||||
|fastd.intragate.instances[x].peers.repo|Key|https://github.com/freifunk-mwu/peers-ffmz.git|URL|| |fastd.backbone.instances[x].peers.repo|Key|https://github.com/freifunk-mwu/ffmz-infrastructure-peers.git|URL||
|fastd.intragate.instances[x].peers.version|Key|master|string|| |fastd.backbone.instances[x].peers.version|Key|master|string||
|fastd.intragate.instances[x].pass|Key|fastd/mzigvpn|string|| |fastd.backbone.instances[x].pass|Key|fastd/mzigvpn|string||
|dns|Dictionary|||| |dns|Dictionary||||
|dns.master|Key|fd37:b4dc:4b1e::a25:103|string; IP-Adresse|DNS-Master IP| |dns.master|Key|fd37:b4dc:4b1e::a25:103|string; IP-Adresse|DNS-Master IP|
|dns.forward_zones|List|||| |dns.forward_zones|List||||

View file

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

View file

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

View file

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

View file

@ -7,7 +7,7 @@
auto {{ item.id }}bat auto {{ item.id }}bat
iface {{ item.id }}bat iface {{ item.id }}bat
hwaddress {{ mac | hwaddr('linux') }} 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 }} 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 it {{ item.batman.it }}
post-up /usr/sbin/batctl -m $IFACE gw {{ item.batman.gw }} 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. 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 ## Interface-Benamung
- Node-Interfaces: _$mesh.id_ + vpn + '-' + _$mesh.fastd.nodes.instances.xx.mtu_, z.B. "mzvpn-1312" - 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 ## Benötigte Variablen
@ -24,7 +24,7 @@ meshes:
- id: 0 # integer - id: 0 # integer
mtu: # integer mtu: # integer
... ...
intragate: backbone:
instances: instances:
- id: 0 # integer - id: 0 # integer
mtu: # integer mtu: # integer

View file

@ -8,14 +8,14 @@
- "{{ meshes }}" - "{{ meshes }}"
- fastd.nodes.instances - fastd.nodes.instances
- name: create fastd intragate interfaces - name: create fastd backbone interfaces
template: template:
src: fastd-intragate.j2 src: fastd-backbone.j2
dest: "/etc/network/interfaces.d/{{ item.0.id }}igvpn-{{ item.1.mtu }}" dest: "/etc/network/interfaces.d/{{ item.0.id }}igvpn-{{ item.1.mtu }}"
notify: reload network interfaces notify: reload network interfaces
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
- name: flush handlers - name: flush handlers
meta: 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. Diese Ansible role konfiguriert die fastd-Instanz für die Intra-Server Kommunikation.
@ -20,7 +20,7 @@ meshes:
... ...
site_number: # integer site_number: # integer
fastd: fastd:
nodes: backbone:
instances: instances:
- id: 0 # integer - id: 0 # integer
mtu: # integer mtu: # integer

View file

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

View file

@ -1,14 +1,14 @@
--- ---
- name: create fastd intragate directories - name: create fastd backbone directories
file: file:
path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}" path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}"
state: directory state: directory
mode: 0755 mode: 0755
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
- name: create fastd peer intragate directories - name: create fastd peer backbone directories
file: file:
path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers" path: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers"
state: directory state: directory
@ -17,9 +17,9 @@
group: admin group: admin
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
- name: clone fastd peer intragate repos - name: clone fastd peer backbone repos
git: git:
repo: "{{ item.1.peers.repo }}" repo: "{{ item.1.peers.repo }}"
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers" dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers"
@ -27,26 +27,26 @@
update: no update: no
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
become: false become: false
- name: template fastd mesh config - name: template fastd backbone config
template: template:
src: fastd-intragate.conf.j2 src: fastd-backbone.conf.j2
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/fastd.conf" dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/fastd.conf"
notify: restart fastd intragate instances notify: restart fastd backbone instances
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
- name: write fastd intragate secret - name: write fastd backbone secret
template: template:
src: fastd-secret.conf.j2 src: fastd-secret.conf.j2
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/secret.conf" dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/secret.conf"
notify: restart fastd intragate instances notify: restart fastd backbone instances
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ meshes }}"
- fastd.intragate.instances - fastd.backbone.instances
- name: configure systemd unit fastd@ - name: configure systemd unit fastd@
systemd: systemd:
@ -55,4 +55,4 @@
state: started state: started
with_subelements: with_subelements:
- "{{ meshes }}" - "{{ 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 ## Instanz-Benamung
- Node-Instanzen: _$mesh.id_ + vpn + '-' + _$mesh.fastd.nodes.instances.xx.mtu_, z.B. "mzvpn-1312" - 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 ## Benötigte Variablen