Infrahub-Sync is a versatile Python package that synchronizes data between a source and a destination system
Project description
Infrahub Sync
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
Infrahub Sync is a versatile Python package that synchronizes data between a source and a destination system. It builds on the robust capabilities of diffsync
to offer flexible and efficient data synchronization across different platforms, including Netbox, Nautobot, and Infrahub. This package features a Typer-based CLI for ease of use, supporting operations such as listing available sync projects, generating diffs, and executing sync processes.
Features
- Multiple Systems Support: Synchronize data between Netbox, Nautobot, and Infrahub.
- Flexible Configuration: Define synchronization tasks with YAML configuration files.
- CLI Interface: Manage sync tasks directly from the command line.
- Custom Sync Logic: Generate Python code for custom sync adapters and models using provided Jinja templates.
Requirements
Requirements
- The two latest Infrahub releases
- Python >=3.9, <3.13
- Python modules:
- infrahub-sdk >= 0.9.0
Documentation
Please refer to the Infrahub Sync documentation.
Project Structure
.
├── README.md
├── examples
│ ├── nautobot-v1_to_infrahub
│ │ ├── config.yml
│ │ ├── infrahub
│ │ │ ├── __init__.py
│ │ │ ├── sync_adapter.py
│ │ │ └── sync_models.py
│ │ └── nautobot
│ │ ├── __init__.py
│ │ ├── sync_adapter.py
│ │ └── sync_models.py
│ ├── nautobot-v2_to_infrahub
│ │ ├── config.yml
│ │ ├── infrahub
│ │ │ ├── __init__.py
│ │ │ ├── sync_adapter.py
│ │ │ └── sync_models.py
│ │ └── nautobot
│ │ ├── __init__.py
│ │ ├── sync_adapter.py
│ │ └── sync_models.py
│ └── netbox_to_infrahub
│ ├── config.yml
│ ├── infrahub
│ │ ├── __init__.py
│ │ ├── sync_adapter.py
│ │ └── sync_models.py
│ └── netbox
│ ├── __init__.py
│ ├── sync_adapter.py
│ └── sync_models.py
├── infrahub-sync
│ ├── infrahub_sync
│ │ ├── __init__.py
│ │ ├── adapters
│ │ │ ├── infrahub.py
│ │ │ ├── nautobot.py
│ │ │ └── netbox.py
│ │ ├── cli.py
│ │ ├── generator
│ │ │ ├── __init__.py
│ │ │ ├── templates
│ │ │ │ ├── diffsync_adapter.j2
│ │ │ │ └── diffsync_models.j2
│ │ │ └── utils.py
│ │ └── utils.py
│ └── tests
│ └── __init__.py
├── poetry.lock
├── potenda
│ └── potenda
│ └── __init__.py
└── pyproject.toml
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
Built Distribution
File details
Details for the file infrahub_sync-0.4.1.tar.gz
.
File metadata
- Download URL: infrahub_sync-0.4.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbaeafd8f510ff1ff401f4e0306a99fae600ebd9ede0e9efaa30beca008ab2f4 |
|
MD5 | 3fd14ec1f3d245b9b6653281057aea80 |
|
BLAKE2b-256 | 13e64f4e097770bb5a65615d9ade2b63fd951a09fc4a32bdac282fec4d2f8645 |
File details
Details for the file infrahub_sync-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: infrahub_sync-0.4.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169a49c5f4e6a410f03b3eb52d20767d3bc58b262492a8c1042d4e20a16ca0d6 |
|
MD5 | 2ee3aeaa3264da1c3d24c58b1d8c45d2 |
|
BLAKE2b-256 | 23d05de81faa0a8f9db74b25aeae5bcc82286e221ed67bb1ec16ef32b8380c94 |