Giter VIP home page Giter VIP logo

netbox-serv's Introduction

netbox-serv

The netbox-serv project integrates RackHD hardware management and orchestration services with DigitalOcean's netbox DCIM/IPAM stack.

The netbox-serv runs as a per-site process- for each running service instance manages a site.

Getting started

  • Recommended to setup a virtual environment using python-virtualenv:
virtual-env .venv
source .venv/bin/activate
  • Install required python package dependencies:

pip install -r requirements.txt

  • To get program parameters run:

python app.py --help

optional arguments:
  -h, --help           show this help message and exit
  --config CONFIG
  --site SITE
  --slug SLUG
  --tenant TENANT
  --facility FACILITY
  --asn ASN
  --physical PHYSICAL
  --shipping SHIPPING
  --comments COMMENTS

The --site argument is required.

  • Start the service: python app.py --site=<your site name>

Netbox-serv will start, create a netbox site and discover all running RackHD services advertising on the network. For each RackHD service a corresponding netbox rack will be created. Each rack will be populated with existing nodes (switches, compute, pdu) and spawn AMQP listeners to listen/add new discovered nodes.

Configuration

  • Service options can be changed by modifying the config/config.ini (or specifying a custom config.ini using the --config option).
LOGLEVEL = WARNING
NETBOX_HOST = localhost
NETBOX_PORT = 80
NETBOX_PORT_AUTH = 443
NETBOX_USER = admin
NETBOX_PASS = admin
NETBOX_VERIFY_SSL = False
NETBOX_DEBUG = False

python app.py --config=/home/me/myconfig.ini

netbox-serv's People

Contributors

jlongever avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.