Factor frr role from debian, ceph and proxmox
Consolidate base system and networking setup into debian role and BGP configuration into frr role. Add facts role to collect data from NetBox once to avoid many slow lookups. Also many other tweaks and cleanups.
This commit is contained in:
parent
256dae2955
commit
25bcddede1
31 changed files with 167 additions and 312 deletions
31
roles/frr/tasks/main.yml
Normal file
31
roles/frr/tasks/main.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
- name: Install FRR
|
||||
package: name=frr,frr-pythontools
|
||||
|
||||
- name: Copy FRR config
|
||||
template:
|
||||
dest: /etc/frr/frr.conf
|
||||
src: frr.conf.j2
|
||||
mode: 0644
|
||||
notify: reload frr
|
||||
|
||||
- name: Set datacenter defaults for FRR
|
||||
lineinfile:
|
||||
path: /etc/frr/daemons
|
||||
line: 'frr_profile="datacenter"'
|
||||
regexp: '#?frr_profile="datacenter"'
|
||||
|
||||
- name: Enable FRR daemons
|
||||
lineinfile:
|
||||
path: /etc/frr/daemons
|
||||
regexp: "^{{ item }}="
|
||||
line: "{{ item }}=yes"
|
||||
loop:
|
||||
- bfdd
|
||||
- bgpd
|
||||
notify: restart frr
|
||||
|
||||
- name: Enable FRR service
|
||||
service:
|
||||
name: frr
|
||||
enabled: yes
|
||||
state: started
|
Loading…
Add table
Add a link
Reference in a new issue