[quagga] Merge ipv4 and ipv6
parent
384c1b34f5
commit
80f0d3686f
|
@ -14,3 +14,20 @@
|
|||
service_password: "{{ vault_re2o_service_password }}"
|
||||
roles:
|
||||
- firewall
|
||||
|
||||
# Deploy BGP server configuration on IPv4 routers
|
||||
- hosts: crans_routeurs
|
||||
vars:
|
||||
zebra:
|
||||
password: "{{ vault_zebra_password }}"
|
||||
bgp:
|
||||
as: 204515
|
||||
router_id_v4: 158.255.113.73
|
||||
network_v4: 185.230.76.0/22
|
||||
neighbor_v4: 158.255.113.72
|
||||
router_id_v6: 138.231.136.200
|
||||
network_v6: 2a0c:700::/32
|
||||
neighbor_v6: 2001:1b48:2:103::bb:1
|
||||
remote_as: 8218
|
||||
roles:
|
||||
- quagga
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
- name: Deploy quagga bgpd configuration
|
||||
template:
|
||||
src: quagga/bgpd.conf.j2
|
||||
dest: /etc/quagga/bgpd.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
||||
|
||||
- name: Deploy quagga zabra configuration
|
||||
template:
|
||||
src: quagga/zebra.conf.j2
|
||||
dest: /etc/quagga/zebra.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
|
@ -1,11 +0,0 @@
|
|||
{{ ansible_header | comment(decoration='! ') }}
|
||||
|
||||
router bgp {{ bgp.as }}
|
||||
no synchronization
|
||||
bgp router-id {{ bgp.router_id }}
|
||||
network {{ bgp.network }}
|
||||
neighbor {{ bgp.neighbor }} remote-as {{ bgp.remote_as }}
|
||||
|
||||
!
|
||||
log file /var/log/quagga/bgpd.log
|
||||
log stdout
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
- name: Deploy quagga bgpd configuration
|
||||
template:
|
||||
src: quagga/bgpd.conf.j2
|
||||
dest: /etc/quagga/bgpd.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
||||
|
||||
- name: Deploy quagga zabra configuration
|
||||
template:
|
||||
src: quagga/zebra.conf.j2
|
||||
dest: /etc/quagga/zebra.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
|
@ -1,13 +0,0 @@
|
|||
{{ ansible_header | comment(decoration='! ') }}
|
||||
|
||||
router bgp {{ bgp.as }}
|
||||
no synchronization
|
||||
bgp router-id {{ bgp.router_id }}
|
||||
neighbor {{ bgp.neighbor }} remote-as {{ bgp.remote_as }}
|
||||
address-family ipv6
|
||||
network {{ bgp.network }}
|
||||
neighbor {{ bgp.neighbor }} activate
|
||||
exit-address-family
|
||||
!
|
||||
log file /var/log/quagga/bgpd.log
|
||||
log stdout
|
|
@ -1,10 +0,0 @@
|
|||
{{ ansible_header | comment(decoration='! ') }}
|
||||
|
||||
hostname zebra
|
||||
password {{ zebra.password }}
|
||||
enable password {{ zebra.password }}
|
||||
log file /var/log/quagga/zebra.log
|
||||
|
||||
|
||||
interface lo
|
||||
line vty
|
|
@ -8,6 +8,14 @@
|
|||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- name: Create quagga log directory
|
||||
file:
|
||||
path: /var/log/quagga
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: quagga
|
||||
group: quagga
|
||||
|
||||
- name: Deploy quagga daemons configuration
|
||||
template:
|
||||
src: quagga/daemons.j2
|
||||
|
@ -24,10 +32,18 @@
|
|||
owner: quagga
|
||||
group: quagga
|
||||
|
||||
- name: Create quagga log directory
|
||||
file:
|
||||
path: /var/log/quagga
|
||||
state: directory
|
||||
mode: 0755
|
||||
- name: Deploy quagga bgpd configuration
|
||||
template:
|
||||
src: quagga/bgpd.conf.j2
|
||||
dest: /etc/quagga/bgpd.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
||||
|
||||
- name: Deploy quagga zabra configuration
|
||||
template:
|
||||
src: quagga/zebra.conf.j2
|
||||
dest: /etc/quagga/zebra.conf
|
||||
mode: 0640
|
||||
owner: quagga
|
||||
group: quagga
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
{{ ansible_header | comment(decoration='! ') }}
|
||||
!
|
||||
router bgp {{ bgp.as }}
|
||||
no synchronization
|
||||
bgp router-id {{ bgp.router_id_v4 }}
|
||||
network {{ bgp.network_v4 }}
|
||||
neighbor {{ bgp.neighbor_v4 }} remote-as {{ bgp.remote_as }}
|
||||
!
|
||||
router bgp {{ bgp.as }}
|
||||
no synchronization
|
||||
bgp router-id {{ bgp.router_id_v6 }}
|
||||
network {{ bgp.network_v6 }}
|
||||
neighbor {{ bgp.neighbor_v6 }} remote-as {{ bgp.remote_as }}
|
||||
!
|
||||
log file /var/log/quagga/bgpd.log
|
||||
log stdout
|
Loading…
Reference in New Issue