Skip to content
Snippets Groups Projects
Verified Commit 44f7e028 authored by shirenn's avatar shirenn 🌊 Committed by ynerant
Browse files

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

parent 317bf148
No related branches found
No related tags found
1 merge request!254Cachan
---
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
......@@ -138,6 +138,9 @@ freebox
mailman
ovh_physical
[prefix_delegation]
routeur-gulp.cachan-adm.crans.org
[radius:children]
routeurs_vm
......
#!/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
{{ 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("") }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment