Skip to main content

Infrahub-Sync is a versatile Python package that synchronizes data between a source and a destination system

Project description

Infrahub Logo

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

infrahub_sync-0.5.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

infrahub_sync-0.5.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file infrahub_sync-0.5.0.tar.gz.

File metadata

  • Download URL: infrahub_sync-0.5.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Darwin/23.0.0

File hashes

Hashes for infrahub_sync-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d306fcad26ba04d50aa1a81a05be2af433961868040e7853216f3ac2541fe435
MD5 89b01bc811d32c6af2be50b59cec01f1
BLAKE2b-256 fb4a5bccbb81fcd6870a454760c60a30213e976eeb8239d1cd8a7a2e85ed3915

See more details on using hashes here.

File details

Details for the file infrahub_sync-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: infrahub_sync-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Darwin/23.0.0

File hashes

Hashes for infrahub_sync-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26eef6c6b92b0a8586eb56f20c11c1a08f227c564bdf3291a3fcb84cc6c39a36
MD5 d67b32c85f12e8f14fa40f39c5f69b02
BLAKE2b-256 dd265047d215becc1d934f89c3119d0c1669fa09db69759c6581529bac5c3745

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page