Skip to content

An Ansible playbook that uses the BlueCat Address Manager API and creates human readable reports about all networks from the RESTful response

License

Notifications You must be signed in to change notification settings

automateyournetwork/BlueCatAddressManagerNetworkFacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BlueCatAddressManagerNetworkFacts

An Ansible playbook that uses the BlueCat Address Manager API and creates human readable reports about all networks from the RESTful response

Written by John Capobianco

Using the BAM API this playbook first gathers facts and then saves RAW JSON, Nice JSON, Nice YAML, CSV, Markdown, and interactive HTML Mind Map files from the returned stateful data.

Prerequisites

  1. Install Ansible

    $ pip install --user ansible

    Centos:

    yum install python

    yum install ansible

  2. Check version of Ansible

    $ansible --version

    ansible 2.9.1

  3. Install node.js and npm

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

  1. Clone the Repository

    git clone https://github.com/automateyournetwork/BlueCatAddressManagerNetworkFacts.git

Run the playbook

After updating the hosts file with the proper hostnames run the playbook.

cd BlueCatAddressManagerNetworkFacts.git

cd playbooks

ansible-playbook GetBAMNetworks.yml

cd ..

cd documentation/BAM

ls

Review files

Output files

The following files are created per host:

Network Facts

Network_Facts_RAW.json - ALL RAW JSON returned data

Network_Facts_Nice.json - All JSON returned data filtered to Nice JSON

Network_Facts.yml - All returned data in Nice YAML

Network_Facts.csv - Fields in CSV

Network_Facts.md - Fields in Markdown

Network_Facts.html - Fields interactive HTML mind map

DEVELOPMENT NOTES

Developed with VS Code, Ansible, CentOS

About

An Ansible playbook that uses the BlueCat Address Manager API and creates human readable reports about all networks from the RESTful response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages