Giter Club home page Giter Club logo

neo4j-ansible-inventory's Introduction

neo4j-ansible-inventory

Store or fetch Ansible inventory data to or from Neo4j

Installation

pip install -r requirements.txt

Usage

# Edit config file
$EDITOR config.yml

# Run Neo4j
docker run -d -e 'NEO4J_AUTH=none' -p 7474:7474 -p 7687:7687 -v /tmp/neo4j/data:/data -v /tmp/neo4j/logs:/logs --name neo4j neo4j:3.0

# Build runtime (necessary whenever you edit any files in this project)
docker build -t neo4j-ansible-inventory .

# Store ansible inventory data to Neo4j
# WARNING: this command will remove existing nodes and pathes in the Neo4j
docker run neo4j-ansible-inventory store.py -c config.yml

# Fetch data from Neo4j and return Ansible dynamic inventory
docker run neo4j-ansible-inventory inventory.py -c config.yml --list
docker run neo4j-ansible-inventory inventory.py -c config.yml --host hostname

Test

# WARNING: this command will remove existing nodes and pathes in the Neo4j
./run_test.sh

Requirements

  • ansible 2.1.0
  • Neo4j 3.0

neo4j-ansible-inventory's People

Contributors

ntoofu avatar

Stargazers

Jeremy Murrah avatar  avatar

Watchers

James Cloos avatar

Forkers

melodous

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.