Ansible scripts for FRI servers
Go to file
Timotej Lazar 19431a827b samba: check AD membership with net
Seems more reliable than adcli. Not sure how reliable any of this
actually is.
2024-05-28 12:51:44 +02:00
filter_plugins proxmox: set up firewall 2024-04-05 06:00:50 +02:00
roles samba: check AD membership with net 2024-05-28 12:51:44 +02:00
.gitignore Add .gitignore 2024-05-19 14:21:25 +02:00
ansible.cfg Set default inventory 2024-04-27 11:02:31 +02:00
inventory.yml ceph: improve cluster setup 2024-03-01 08:45:51 +01:00
LICENSE Unlicense 2024-05-19 14:31:43 +02:00
README.md Drop unneeded setting from README 2024-05-19 14:22:41 +02:00
setup.yml Add netbox role 2024-05-28 12:32:28 +02:00
UNLICENSE Unlicense 2024-05-19 14:31:43 +02:00

These Ansible roles set up servers running various Linux distributions to participate in BGP routing. Device and IP address data are pulled from NetBox. A separate VRF mgmt is configured for a L2 management interface.

Setup

Each server should have the following information recorded in NetBox:

  • network interfaces mgmt*: used for management (Ansible) access; must define MAC and IP address
  • network interfaces lan*: used for BGP routing; must define MAC address
  • network interface lo: must define the IP address to announce over BGP, also serves as router ID

For the management IP address, another address in the same prefix should be defined with the tag gateway.

Run

Create a read-only token in NetBox. Define required variables:

export NETBOX_API=<url>
export NETBOX_TOKEN=<token>

Run one-off tasks with (add --key-file or other options as necessary):

ansible -m ping 'server-*'

Run a playbook with:

ansible-playbook setup.yml -l 'server-*'