diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/uvok_bird/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/uvok_bird/tasks/main.yml | 1 | ||||
-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; |