Nornir plugin for Infrahub

July 1, 2026 ยท View on GitHub

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.

Nornir

A Nornir plugin for Infrahub. Infrahub can be used as an inventory source for Nornir.

Installation

pip install nornir-infrahub

Documentation

Documentation for using Nornir is available in the Nornir-Infrahub documentation.

Development

Setup

uv sync

Linting and Formatting

invoke lint          # Run all linters (yaml, ruff, pylint, ty)
invoke format        # Auto-format code with ruff

Documentation

invoke docs-install  # Install npm dependencies for docs
invoke docs-serve    # Start dev server at http://localhost:3000
invoke docs-build    # Build production documentation
invoke generate-docs # Generate plugin reference docs from docstrings

Testing

pytest               # Run all tests