Commit 4e7f78e8 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Draft for the BGP Configuration for HE

parent 05dd7f44
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars_prompt:
- name: "local_ipv4"
prompt: "When finish we please update the /etc/quagga/bgpd.conf."
private: no
roles:
- he-quagga
! -*- bgp -*-
!
! BGPd grandenet configuratin file
!
! UPDATE ALL XXX
hostname bgpd
password zebra
!enable password please-set-at-here
!
!bgp mulitple-instance
!
router bgp XXX
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor upstream peer-group
neighbor upstream remote-as 6939
neighbor upstream update-source XXX
!
address-family ipv6
network XXX
neighbor upstream activate
neighbor upstream remove-private-AS
neighbor upstream prefix-list pl-transit-64-v6i in
neighbor upstream prefix-list pl-XXX-v6-to-upstream out
neighbor XXX peer-group upstream
exit-address-family
!
ipv6 prefix-list pl-transit-64-v6i deny any
!
ipv6 prefix-list pl-XXX-v6-to-upstream permit XXX
ipv6 prefix-list pl-XXX-v6-to-upstream deny any
!
log file /var/log/quagga/bgpd.log
!
!log stdout
# This file tells the quagga package which daemons to start.
#
# Entries are in the format: <daemon>=(yes|no|priority)
# 0, "no" = disabled
# 1, "yes" = highest priority
# 2 .. 10 = lower priorities
# Read /usr/share/doc/quagga/README.Debian for details.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/quagga/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "quagga", else
# the daemon will not be started by /etc/init.d/quagga. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too.
#
# The watchquagga daemon is always started. Per default in monitoring-only but
# that can be changed via /etc/quagga/debian.conf.
#
vtysh_enable=yes
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
!
! Sample configuration file for vtysh.
!
service integrated-vtysh-config
!hostname quagga-router
username root nopassword
!
! -*- zebra -*-
!
! zebra sample configuration file
!
! $Id: zebra.conf.sample,v 1.1 2002/12/13 20:15:30 paul Exp $
!
hostname Router
password zebra
enable password zebra
!
! Interface's description.
!
!interface lo
! description test of desc.
!
!interface sit0
! multicast
!
! Static default route sample.
!
!ip route 0.0.0.0/0 203.181.89.241
!
log file /var/log/quagga/zebra.log
---
- name: restart re6stnet
service: name=re6stnet state=restarted
---
dependencies:
- { role: package, package_name: quagga, package_state: present }
- name: Check if configuration exists already
stat: path=/etc/re6stnet/re6stnet.conf
register: re6stnet_conf
- lineinfile: dest=/etc/re6stnet/re6stnet.conf line='gateway' state=present
notify: restart re6stnet
when: re6stnet_conf.stat.exists == True
- name: copy templates
copy: src={{ item }} dest=/etc/quagga/{{ item }} mode=660
with_items:
- bgpd.conf
- daemons
- vtysh.conf
- zebra.conf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment