add pingfinder

ipv4_link_local
n0emis 5 years ago
parent 11b906d401
commit 975bc156a1
Signed by untrusted user: n0emis
GPG Key ID: 00FAF748B777CF10

@ -14,6 +14,12 @@ dn42_roa_v6_location: "/etc/bird/roa_dn42_v6.conf"
dn42_roa_cronjob: "curl -sfSLR -o{{ dn42_roa_v4_location }} -z{{ dn42_roa_v4_location }} {{ dn42_roa_v4_source }} && curl -sfSLR -o{{ dn42_roa_v6_location }} -z{{ dn42_roa_v6_location }} {{ dn42_roa_v6_source }} && birdc configure" dn42_roa_cronjob: "curl -sfSLR -o{{ dn42_roa_v4_location }} -z{{ dn42_roa_v4_location }} {{ dn42_roa_v4_source }} && curl -sfSLR -o{{ dn42_roa_v6_location }} -z{{ dn42_roa_v6_location }} {{ dn42_roa_v6_source }} && birdc configure"
dn42_pingfinder_enable: no
dn42_pingfinder_download_url: "https://git.dn42.us/dn42/pingfinder/raw/master/clients/generic-linux-debian-redhat-busybox.sh"
dn42_pingfinder_location: "/usr/bin/dn42_pingfinder"
dn42_pingfinder_uuid: ""
dn42_pingfinder_logfile: "/dev/null"
dn42_peers: dn42_peers:
- name: "neighbour" - name: "neighbour"
as: "4242424242" as: "4242424242"

@ -6,6 +6,10 @@
loop_control: loop_control:
loop_var: "peer" loop_var: "peer"
- name: Deploy Pingfinder
include_tasks: pingfinder.yml
when: dn42_pingfinder_enable
- name: Download ROA-Tables - name: Download ROA-Tables
shell: "{{ dn42_roa_cronjob }}" shell: "{{ dn42_roa_cronjob }}"
args: args:

@ -0,0 +1,13 @@
---
- name: Download Pingfinder Script
get_url:
url: "{{ dn42_pingfinder_download_url }}"
dest: "{{ dn42_pingfinder_location }}"
owner: "root"
group: "root"
mode: "0755"
- name: Add Pingfinder Cronjob
cron:
job: "UUID={{ dn42_pingfinder_uuid }} LOGFILE:{{ dn42_pingfinder_logfile }} {{ dn42_pingfinder_location }}"
minute: "*/5"
Loading…
Cancel
Save