Skip to content

Role to manage exabgp (forked from 'Foxlil' and updated).

License

Notifications You must be signed in to change notification settings

aruhier/ansible-exabgp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: ExaBGP

Ansible role to deploy and manage ExaBGP.

Uses pip to install the last version of ExaBGP.

Role default variables

# If specified, exabgp_version will force to install a specific pip version of
# exabgp instead of the last one.
exabgp_version: null

# Pip package name to install.
exabgp_pip_name: exabgp

# Options to specify in /etc/exabgp/exabgp.env. Dictionary, where first level
# keys are sections, themselves being a dictionary describing the options.
exabgp_env:
  exabgp.daemon:
    daemonize: true
    pid: "{{ exabgp_pid_file }}"
  exabgp.log:
    all: false
    enable: true

# List of configuration sections in exabgp.conf. Each element is a dictionary
# containing three possible keys: section (such as group, neighbor, etc), name
# (optional), and config that defines the actual configuration for the section.
exabgp_conf: []

# Scripts to copy in /etc/exabgp, to be used by the process sections.
exabgp_scripts: {}

Example Playbook

- hosts: all
  vars:
    exabgp_env:
      exabgp.daemon:
        daemonize: true
        pid: "{{ exabgp_pid_file }}"
      exabgp.log:
        all: false
        enable: true
    exabgp_scripts:
      watchdog.sh: |-
        #!/bin/bash
        echo "announce watchdog foo"

    exabgp_conf:
      - section: process
        name: watchdog
        config: |-
          run /etc/exabgp/foo.sh;
          encoder json;
      - section: neighbor
        name: EXAMPLE
        config: |-
          description "EXAMPLE";
          local-as 65000;
          local-address 127.0.0.1;
          hold-time 180;
          static {
            route 192.0.2.1/32 next-hop self watchdog foo;
          }


  roles:
    - role: Anthony25.exabgp

Dependencies

None

License

GPL v2.0

Authors Information

About

Role to manage exabgp (forked from 'Foxlil' and updated).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 63.6%
  • Jinja 36.4%