Skip to content

elcomtik/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: "/var/run/exabgp/exabgp.pid"
  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: "/var/run/exabgp/exabgp.pid"
      exabgp.log:
        all: False
        enable: True
      exabgp.api:
        ack: False

    exabgp_scripts:
      watchdog.sh: |-
        #!/bin/bash
        echo "announce watchdog foo"

    exabgp_conf:
      - section: process
        name: watchdog
        config: |-
          run /etc/exabgp/watchdog.sh;
          encoder text;
      - section: neighbor
        name: EXAMPLE
        config: |-
          description "EXAMPLE";
          local-as 65000;
          local-address 127.0.0.1;
          hold-time 180;
          api {
            processes [ watchdog ];
          }


  roles:
    - role: elcomtik.exabgp

Dependencies

None

License

GPL v2.0

Authors Information

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%