Remove Role service-respondd

superseded by yanic respondd
This commit is contained in:
Julian Labus 2019-05-02 15:57:52 +02:00
parent c29a24233e
commit 07bcfca54d
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
4 changed files with 0 additions and 86 deletions

View file

@ -1,17 +0,0 @@
# Ansible role service-respondd
Diese Ansible role installiert und konfiguriert die respondd Implementierung `mesh-announce`.
Pro Mesh Netzwerk muss eine `mesh-announce`-Instanz laufen.
- installiert `mesh-announce` (Github Clone)
- installiert pro Mesh Netzwerk eine systemd unit
## Benötigte Variablen
- Dictionary `meshes`
```
meshes:
- id: xx
site_code: # string
```

View file

@ -1,10 +0,0 @@
---
- name: reload systemd
systemd:
daemon_reload: yes
- name: restart respondd
systemd:
name: "respondd-{{ item.id }}"
state: restarted
loop: "{{ meshes }}"

View file

@ -1,47 +0,0 @@
---
- name: install packages
package:
name: python3-netifaces
state: present
- name: clone respondd repo
git:
repo: https://github.com/freifunk-mwu/mesh-announce.git
dest: /home/admin/clones/mesh-announce
version: mwu-respondd
force: yes
become: false
- name: set respondd vpn flag to false
when: server_type != "gateway"
copy:
content: "False"
dest: /home/admin/clones/mesh-announce/nodeinfo.d/vpn
notify:
- restart respondd
- name: set firmware version
copy:
content: "call(['lsb_release','-rs'])[0]"
dest: /home/admin/clones/mesh-announce/nodeinfo.d/software/firmware/release
notify:
- restart respondd
- name: write systemd unit files
template:
src: respondd.service.j2
dest: "/etc/systemd/system/respondd-{{ item.id }}.service"
owner: root
group: root
mode: 0644
notify:
- reload systemd
- restart respondd
loop: "{{ meshes }}"
- name: configure systemd unit files
systemd:
name: "respondd-{{ item.id }}"
enabled: yes
state: started
loop: "{{ meshes }}"

View file

@ -1,12 +0,0 @@
[Unit]
Description=respondd instance {{ item.id }}
After={% for interface in item.fastd.nodes.instances %}fastd@{{ item.id }}vpn-{{ interface.mtu }}.service{% if not loop.last %} {% endif %}{% endfor %}
[Service]
ExecStart=/home/admin/clones/mesh-announce/respondd.py -i {{ item.id }}br {% for interface in item.fastd.nodes.instances %}-i {{ item.id }}vpn-{{ interface.mtu }}{% if not loop.last %} {% endif %}{% endfor %} -b {{ item.id }}bat -s {{ site_code }} -d {{ item.domain_code }} --data-provider-directory /home/admin/clones/mesh-announce/
Restart=always
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[Install]
WantedBy=multi-user.target