Nornir plugin for Infrahub
Project description
Nornir plugin for Infrahub
Infrahub by OpsMill acts as a central hub to manage the data, templates and playbooks that powers your infrastructure. At its heart, Infrahub is built on 3 fundamental pillars:
- A Flexible Schema: A model of the infrastructure and the relation between the objects in the model, that's easily extensible.
- Version Control: Natively integrated into the graph database which opens up some new capabilities like branching, diffing, and merging data directly in the database.
- Unified Storage: By combining a graph database and git, Infrahub stores data and code needed to manage the infrastructure.
Introduction
A Nornir plugin for Infrahub. Infrahub can be used as an inventory source for Nornir.
Installation
pip install nornir_infrahub
Usage
An example of this can be found in ./examples/nornir_inventory.py
Infrahub artifact tasks
A set of tasks are provided to operate on Infrahub Artifacts:
generate_artifacts
: generates the Artifacts for a Artifact Definitionregenerate_artifact
: re-generates an Artifact for a Nornir Hostget_artifact
: retrieve an Artifact for a Nornir Host
An example of this can be found in ./examples/nornir_tasks.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nornir_infrahub-0.3.2.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for nornir_infrahub-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f013fa700d055d94a6d6d74d4991faa61229042a3b29508db75a88ea35d10e5f |
|
MD5 | a90193563a9e8099b5c7ac57343289c1 |
|
BLAKE2b-256 | b1f8368318dbef1abbbb951650e93844d6b1db224372205a6b971fff0f70efeb |