Skip to content

Commit

Permalink
mesh-announce: update to kiels latest master
Browse files Browse the repository at this point in the history
they implemented a long awaited PR, where they'd change the config from arguments to one configfile.
Look here for further reference:
ffnord/mesh-announce#60
  • Loading branch information
AiyionPrime committed Feb 14, 2021
1 parent 3acb1bc commit 39abb99
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/ffh.mesh_announce/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

mesh_announce_cfg_path: "/etc/mesh-announce"
10 changes: 10 additions & 0 deletions roles/ffh.mesh_announce/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
accept_hostkey=true
register: code

- name: Create configpath
file:
path: "{{ mesh_announce_cfg_path }}"
state: directory

- name: Copy configuration file
template:
src: "respondd.conf.j2"
dest: "{{ mesh_announce_cfg_path }}/respondd.conf"

- name: Copy systemd service
template:
src: "respondd.service.j2"
Expand Down
29 changes: 29 additions & 0 deletions roles/ffh.mesh_announce/templates/respondd.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Default settings
[Defaults]
# Listen port
# optional, default: 1001
Port: 1001
# Default link local listen addresses
# optional, default: ff02::2:1001
MulticastLinkAddress: ff02::2:1001
# Default site local listen addresses
# optional, default: ff05::2:1001
MulticastSiteAddress: ff05::2:1001
# Default domain to use
# optional, if specified incoming requests that can not be mapped to a domain
# are mapped to this domain
DefaultDomain: ffh
# Default domain type
# optional, default: simple
# supported domain types are: simple, batadv
DomainType: batadv
# Default ddhcpd IPv4 gateway address
# optional
# IPv4Gateway: 10.116.128.8

{% for domain in domains_with_dom0 | default( [] ) %}
[dom{{ domain.id }}]
BatmanInterface: bat{{ domain.id }}
Interfaces: mesh_fastd_{{ domain.id }}

{% endfor %}
2 changes: 1 addition & 1 deletion roles/ffh.mesh_announce/templates/respondd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=Respondd
After=network.target

[Service]
ExecStart=/opt/mesh-announce/respondd.py -d /opt/mesh-announce/providers {% for domain in domains | default( [] ) %} -i bat{{ domain.id }} -b bat{{ domain.id }} -i mesh_fastd_{{ domain.id }} {% endfor %} -i bat0 -b bat0 -i mesh_fastd
ExecStart=/opt/mesh-announce/respondd.py -d /opt/mesh-announce/providers -f /etc/mesh-announce/respondd.conf
Restart=always
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Expand Down

0 comments on commit 39abb99

Please sign in to comment.