From e083e995d48c0c3ae64f4ee082bbe92810f549e2 Mon Sep 17 00:00:00 2001 From: shirenn Date: Mon, 28 Nov 2022 13:23:02 +0100 Subject: [PATCH] [bird] move bird configuration to group_vars/bird.yml --- group_vars/bird.yml | 49 ++++++++++++++- .../routeur-daniel.adm.crans.org/bird.yml | 49 --------------- host_vars/routeur-jack.adm.crans.org/bird.yml | 60 ------------------- host_vars/routeur-sam.adm.crans.org/bird.yml | 49 --------------- 4 files changed, 48 insertions(+), 159 deletions(-) delete mode 100644 host_vars/routeur-daniel.adm.crans.org/bird.yml delete mode 100644 host_vars/routeur-jack.adm.crans.org/bird.yml delete mode 100644 host_vars/routeur-sam.adm.crans.org/bird.yml diff --git a/group_vars/bird.yml b/group_vars/bird.yml index ebecfc01..702ae11f 100644 --- a/group_vars/bird.yml +++ b/group_vars/bird.yml @@ -1,5 +1,52 @@ --- -glob_bird: {} +glob_bird: + id: 185.230.79.253 + asn: + crans: 204515 + aurore: 43619 + viarezo: 212424 + static: + ipv4: + - route 185.230.76.0/22 unreachable + ipv6: + - route 2a0c:700::/32 unreachable + bgp: + - name: aurore4 + description: "BGP4 session with aurore" + local: + asn: crans + addr: 185.230.79.253 + neighbor: + asn: aurore + addr: 185.230.79.254 + ipv4: true + - name: aurore6 + description: "BGP6 session with aurore" + local: + asn: crans + addr: 2a0c:700:28::1 + neighbor: + asn: aurore + addr: 2a0c:700:28::2 + ipv6: true + - name: viarezo4 + description: "BGP4 session with viarezo" + local: + asn: crans + addr: 138.195.159.250 + neighbor: + asn: viarezo + addr: 138.195.159.249 + ipv4: true + - name: viarezo6 + description: "BGP6 session with viarezo" + local: + asn: crans + addr: 2a0c:b641:2f3::2 + neighbor: + asn: viarezo + addr: 2a0c:b641:2f3::1 + ipv6: true glob_prometheus_bird_exporter: listen_addr: "{{ query('ldap', 'ip4', ansible_hostname, 'adm') }}" diff --git a/host_vars/routeur-daniel.adm.crans.org/bird.yml b/host_vars/routeur-daniel.adm.crans.org/bird.yml deleted file mode 100644 index ba338177..00000000 --- a/host_vars/routeur-daniel.adm.crans.org/bird.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -loc_bird: - id: 185.230.79.253 - asn: - crans: 204515 - aurore: 43619 - viarezo: 212424 - static: - ipv4: - - route 185.230.76.0/22 unreachable - ipv6: - - route 2a0c:700::/32 unreachable - bgp: - - name: aurore4 - description: "BGP4 session with aurore" - local: - asn: crans - addr: 185.230.79.253 - neighbor: - asn: aurore - addr: 185.230.79.254 - ipv4: true - - name: aurore6 - description: "BGP6 session with aurore" - local: - asn: crans - addr: 2a0c:700:28::1 - neighbor: - asn: aurore - addr: 2a0c:700:28::2 - ipv6: true - - name: viarezo4 - description: "BGP4 session with viarezo" - local: - asn: crans - addr: 138.195.159.250 - neighbor: - asn: viarezo - addr: 138.195.159.249 - ipv4: true - - name: viarezo6 - description: "BGP6 session with viarezo" - local: - asn: crans - addr: 2a0c:b641:2f3::2 - neighbor: - asn: viarezo - addr: 2a0c:b641:2f3::1 - ipv6: true diff --git a/host_vars/routeur-jack.adm.crans.org/bird.yml b/host_vars/routeur-jack.adm.crans.org/bird.yml deleted file mode 100644 index fd948648..00000000 --- a/host_vars/routeur-jack.adm.crans.org/bird.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -loc_bird: - ipv4: - id: 185.230.79.253 - binds: - - 138.195.159.250 - - 185.230.79.253 - statics: - - 185.230.76.0/22 - kernel_filter: - - 185.230.78.0/24 - bgps: - - name: viarezo - allow_local_as: 1 - local: - as: 204515 - address: 138.195.159.250 - remote: - as: 212424 - address: 138.195.159.249 - allow_export_prefixes: - - 185.230.76.0/22+ - - name: aurore - allow_local_as: 1 - local: - as: 204515 - address: 185.230.79.253 - remote: - as: 43619 - address: 185.230.79.254 - allow_export_prefixes: - - 185.230.76.0/22+ - ipv6: - id: 185.230.79.253 - binds: - - 2a0c:b641:2f3::2 - - 2a0c:700:28::1 - statics: - - 2a0c:700::/32 - bgps: - - name: viarezo - allow_local_as: 1 - local: - as: 204515 - address: 2a0c:b641:2f3::2 - remote: - as: 212424 - address: 2a0c:b641:2f3::1 - allow_export_prefixes: - - 2a0c:700::/32+ - - name: aurore - allow_local_as: 1 - local: - as: 204515 - address: 2a0c:700:28::1 - remote: - as: 43619 - address: 2a0c:700:28::2 - allow_export_prefixes: - - 2a0c:700::/32+ diff --git a/host_vars/routeur-sam.adm.crans.org/bird.yml b/host_vars/routeur-sam.adm.crans.org/bird.yml deleted file mode 100644 index ba338177..00000000 --- a/host_vars/routeur-sam.adm.crans.org/bird.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -loc_bird: - id: 185.230.79.253 - asn: - crans: 204515 - aurore: 43619 - viarezo: 212424 - static: - ipv4: - - route 185.230.76.0/22 unreachable - ipv6: - - route 2a0c:700::/32 unreachable - bgp: - - name: aurore4 - description: "BGP4 session with aurore" - local: - asn: crans - addr: 185.230.79.253 - neighbor: - asn: aurore - addr: 185.230.79.254 - ipv4: true - - name: aurore6 - description: "BGP6 session with aurore" - local: - asn: crans - addr: 2a0c:700:28::1 - neighbor: - asn: aurore - addr: 2a0c:700:28::2 - ipv6: true - - name: viarezo4 - description: "BGP4 session with viarezo" - local: - asn: crans - addr: 138.195.159.250 - neighbor: - asn: viarezo - addr: 138.195.159.249 - ipv4: true - - name: viarezo6 - description: "BGP6 session with viarezo" - local: - asn: crans - addr: 2a0c:b641:2f3::2 - neighbor: - asn: viarezo - addr: 2a0c:b641:2f3::1 - ipv6: true