Netbox Data Demo

A repository to demonstrate how NetBox can be setup and configured as a source of truth inside WWT's Cisco Ansible Automation Lab.

Installation Steps

  1. Register and launch a copy of the Cisco Ansible Lab at https://www.wwt.com/lab/cisco-ansible-automation-training-lab

Image of Lab Page

  1. Once in the lab, open up a terminal window and clone this repository.
git clone https://github.com/tylerhatton/netbox-data-demo.git
  1. Go to the netbox-data-demo directory and start up Netbox using docker-compose.
cd netbox-data-demo
docker-compose up -d
  1. After several minutes, open a browser and verify NetBox is running at http://127.0.0.1:8080/

  2. Install the Python dependencies used by Ansible.

pip3 install -r playbooks/requirements.txt
  1. Install the NetBox Ansible Collection dependencies used by Ansible.
ansible-galaxy collection install netbox.netbox
  1. Execute Ansible playbook to perform initial configuration of Cisco CSRs in lab to add interface and routing configurations.
ansible-playbook playbooks/00_setupdevices.yml -i playbooks/hosts
  1. Execute Ansible playbook to initially set up NetBox with site, rack, platform, and device information.
ansible-playbook playbooks/01_configurenetbox.yml -i playbooks/hosts