Giter VIP home page Giter VIP logo

ansible-exabgp's Introduction

Ansible ExaBGP

Ansible role to deploy and manage ExaBGP.

Requirements

No specific pre-requirements (as of this update/fork).

This update switches from using pip to an included RPM package installed with yum for RedHat and derivatives.

On Ubuntu (Xenial), this role already used apt, and may install pip if it is missing and if needed.

Role Variables

  • exabgp_pid_file: Path to PID file.
    Defaults to /var/run/exabgp.pid.

  • exabgp_user: User for ExaBGP process to run as.
    Defaults to nobody.

  • exabgp_group: Group for ExaBGP process to run as.
    Defaults to nobody.

  • exabgp_env: This is a dictionary of dictionaries that configures how the ExaBGP process starts and runs. Refer to ExaBGP documentation for what are valid configuration values. A typical configuration knob is of the form exabgp.log.enable. The first two parts, exabgp.log form the section name. The last part is configuration key that accepts a parameter.
    This defaults to:

exabgp_env:
    exabgp.daemon:
      daemonize: true
      pid: "{{ exabgp_pid_file }}"
    exabgp.log:
      all: false
      enable: true
      destination: syslog
  • exabgp_conf: This is a list of configuration sections for exabgp.conf. Each element in the list is a dictionary with three possible keys: section (such as group, neighbor, etc), name (optional), and config that defines the actual configuration for the section.
    This defaults to an empty list. An example is:
  exabgp_conf:
    - section: group
      name: EXAMPLE
      config: |-
        local-as 64512;
        local-address 127.0.0.1;
        hold-time 180;
        group-updates;
        family {
          ipv4 unicast;
        }
        neighbor 127.0.0.10 {
          description "EXAMPLE";
          peer-as 64513;
        }

Dependencies

No dependency on other roles.

Example Playbook

    - hosts: bgp_servers
      vars:
        exabgp_conf:
          - section: neighbor
            name: 127.0.0.15
            config: |-
              local-as 64512;
              local-address 127.0.0.1;
              description "Example neighbor";
              peer-as 64514;
              hold-time 5;
              static {
                route 127.0.0.2 {
                  next-hop 127.0.0.3;
                }
              }
              family {
                inet unicast;
              }
      roles:
         - { role: sfromm.exabgp }

License

GPL v2.0

Authors Information

ansible-exabgp's People

Contributors

foxlik avatar rhicks avatar sfromm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.