[prefix_delegation] adds a service for prefix_delegation on routeur-gulp

certbot_on_virtu
_shirenn 2021-05-24 12:57:40 +02:00 committed by Yohann D'ANELLO
parent 317bf148b6
commit 44f7e0285c
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
4 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,15 @@
---
loc_service_prefix_delegation:
re2o:
hostname: "{{ query('ldap', 'ip', 're2o', 'adm') | ipv4 | first }}"
user: services
password: "{{ vault.re2o_service_password }}"
name: prefix_delegation
install_dir: /var/local/services/prefix_delegation
frequency: "*/5 * * * *"
dependencies:
- python3-iso8601
git:
remote: https://gitlab.adm.crans.org/nounous/prefix_delegation.git
version: master

3
hosts
View File

@ -138,6 +138,9 @@ freebox
mailman
ovh_physical
[prefix_delegation]
routeur-gulp.cachan-adm.crans.org
[radius:children]
routeurs_vm

View File

@ -0,0 +1,8 @@
#!/usr/bin/env ansible-playbook
---
# Deploy prefix_delegation service
- hosts: prefix_delegation
vars:
service: "{{ glob_service_prefix_delegation | default({}) | combine(loc_service_prefix_delegation | default({})) }}"
roles:
- service

View File

@ -1,2 +1,2 @@
{{ ansible_header | comment }}
{{ service.frequency }} root /usr/bin/python3 {{ service.install_dir }}/{{ service.name }}.py {{ service.options }}
{{ service.frequency }} root /usr/bin/python3 {{ service.install_dir }}/{{ service.name }}.py {{ service.options | default("") }}