summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authoruvok cheetah2024-05-28 19:45:43 +0200
committeruvok cheetah2024-05-30 11:01:23 +0200
commit4546c428642619896e0ed7646d91eb129cc8a701 (patch)
treec8b1efa6ed9673c4f3e163afcf518de1e27fee67 /roles
parent443af32839c531171a6667751e2d783a2e74bbd4 (diff)
bird: Make RPKI config'able
Diffstat (limited to 'roles')
-rw-r--r--roles/uvok_bird/defaults/main.yml2
-rw-r--r--roles/uvok_bird/tasks/main.yml1
-rw-r--r--roles/uvok_bird/templates/clear_rpki.conf.j2 (renamed from roles/uvok_bird/files/clear_rpki.conf)4
3 files changed, 5 insertions, 2 deletions
diff --git a/roles/uvok_bird/defaults/main.yml b/roles/uvok_bird/defaults/main.yml
index 5023a41..4138414 100644
--- a/roles/uvok_bird/defaults/main.yml
+++ b/roles/uvok_bird/defaults/main.yml
@@ -10,3 +10,5 @@ uvok_bird_opts:
babel_if_name:
router_id: "0.0.0.0"
clear_as: "64496"
+ rpki1: "127.0.0.1"
+ rpki2: "127.0.0.2"
diff --git a/roles/uvok_bird/tasks/main.yml b/roles/uvok_bird/tasks/main.yml
index db9c64f..5dd98f8 100644
--- a/roles/uvok_bird/tasks/main.yml
+++ b/roles/uvok_bird/tasks/main.yml
@@ -72,6 +72,7 @@
loop:
- { src: 'clearnet.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/clearnet.conf' }
- { src: 'clear_defines.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/clear_defines.conf' }
+ - { src: 'clear_rpki.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/clear_rpki.conf' }
notify: configure bird
- name: Copy remaining clearnet files
ansible.posix.synchronize:
diff --git a/roles/uvok_bird/files/clear_rpki.conf b/roles/uvok_bird/templates/clear_rpki.conf.j2
index d034889..97f869c 100644
--- a/roles/uvok_bird/files/clear_rpki.conf
+++ b/roles/uvok_bird/templates/clear_rpki.conf.j2
@@ -4,7 +4,7 @@ roa6 table clear_roa_v6;
protocol rpki roa_clearnet1 {
roa6 { table clear_roa_v6; };
- remote 10.2.0.1;
+ remote {{ uvok_bird_opts.rpki1 }};
port 8282;
refresh 3600;
retry 600;
@@ -13,7 +13,7 @@ protocol rpki roa_clearnet1 {
protocol rpki roa_clearnet2 {
roa6 { table clear_roa_v6; };
- remote 10.2.0.12;
+ remote {{ uvok_bird_opts.rpki2 }};
port 8282;
refresh 3600;
retry 600;