Coder Social home page Coder Social logo

saltstack_device42_cmdb's Introduction

saltexplore

Script to sync Salt nodes information to Device42 (http://device42.com) This script was tested with Salt Master ( 2016.11.1 Carbon )

Requirements

  • Python 3.6.x +
  • Take the file settings.yaml.example and rename it to settings.yaml. Then change the settings to correct ones.
  • Install needed dependencies by running the following in the project directory
pip3 install -r requirements.txt

Salt Configure

For proper connection minions certificate should be signed on salt master. Script should be run on salt master server. See NodeFilter.md for node filtering options.

Run

python3 saltexplore.py [-c /path/to/settings.yaml]

Notes

Importing and using LocalClient must be done on the same machine as the Salt Master and it must be done using the same user that the Salt Master is running as.

More information on the salt.client module can be found here

Command List

  -h, --help            show help message and exit
  -d, --debug           Enable debug output
  -q, --quiet           Quiet mode - outputs only errors
  -c CONFIG, --config CONFIG
                        Config file
  -f NODEFILE, --nodefile NODEFILE
                        Get node info from JSON file instead of Salt server
  -S SAVENODES, --savenodes SAVENODES
                        Save nodes info from Salt server to json file
  -n ONLYNODE, --onlynode ONLYNODE
                        Process only selected nodes (fqdn or hostname)

Bugs / Feature Requests

Please attach node info from salt while sending bugs/feature requests. It can help to understand your specifics.

saltstack_device42_cmdb's People

Contributors

andrewwangn avatar buser8303 avatar buser8304 avatar cscaglioned42 avatar dependabot[bot] avatar dpinyol avatar osanchez42 avatar rickjohnston avatar romannyschuk avatar

Watchers

 avatar  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.