crispy-enigma

command module
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 1 Imported by: 0

README

CRISPY ENIGMA

This project is a demo to use the artifacts created by Arista AVD during the build process and update other systems. When the build playbook of AVD runs creates a folder called intended\structure_configs with a yml file for every switch in the topology. This project uses this files to update Netbox and Infoblox with the new information. This script also is capable of generating YAML files to be consumed by the ansible-playbook build.yml from AVD.

Installation

  • (Recommended) Download the correct version of your OS from the releases page.
  • Build the binary:
    • Install Go.
    • Download the repo: git clone https://github.com/rogerscuall/crispy-enigma.git.
    • Move to the repo: cd crispy-enigma.
    • Create the binary: go build -o crispy-enigma.

How to use it

  1. Run the AVD build playbook. ansible-playbook -i build.yml
  2. Verify that the intended\structure_configs folder was created.
  3. Create the necessary envar:
    1. export INFOBLOX_USERNAME=<user>
    2. export INFOBLOX_PASSWORD=<password>
    3. export INFOBLOX_WAPI_VERSION=<version>
    4. export INFOBLOX_URL=<url> -> export INFOBLOX_URL=1.1.1.1
    5. export NETBOX_USERNAME=<user>
    6. export NETBOX_PASSWORD=<password>
    7. export NETBOX_URL=<url> -> export NETBOX_URL=https://demo.netbox.dev
    8. export CVP_URL=<url> -> if not defined uses https://www.arista.io
    9. export CVP_USERNAME=<user>
    10. export CVP_PASSWORD=<password>
  4. Update Infoblox: crispy-enigma infobloxUpdate -f intended/structure_configs/
  5. Update Netbox: crispy-enigma netboxUpdate -f intended/structure_configs/
  6. Download and compare configs with CVP: crispy-enigma cvpConfig -f intended/configs/

Documentation

Overview

Copyright © 2024 Roger Gomez [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
internal
vcs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL