Skip to main content

Configuration manager for network devices

Project description

Homer allows to manage the lifecycle of the configuration for network devices, generating and deploying their configuration.

The configuration generation is based on YAML files to define variables and Jinja2 templates. The YAML files allow for hierarchical override of variables based on the device role, site or hostname. Once generated, the configuration can be deployed to the selected devices.

The device list can either live hardcoded in the configuration files or be dynamically gathered from Netbox. When using Netbox as inventory both the Virtual Chassis endpoint and the Device endpoint are used to select all the devices that matches the configured whitelist of device roles and statuses.

Also when using Netbox as inventory for each device additional metadata is exposed to the templates, namely:

  • role: device role slug

  • site: device site slug

  • type: device type slug

  • ip4: primary IPv4 without netmask

  • ip6: primary IPv6 without netmask

  • netbox_object: the Netbox device object. Directly exposed data should always be preferred in templates. It is exposed to not be a blocker in case some additional data is needed that is not yet exposed by Homer explicitely. It could be removed in a future release.

If any metadata is present in the YAML inventory file when using Netbox as inventory, this additional metadata ie exposed too to the templates, with the Netbox values having precedence in case of overlapping keys.

When using Netbox to gather dynamic configuration, it’s also possible to write a custom plugin in the form of a Python module that implements a class called NetboxDeviceDataPlugin that inherits from homer.netbox.BaseNetboxDeviceData and is in the Python PATH. Assuming that the plugin class implements a method named _get_name, it will be accessible within the templates with netbox.device_plugin.name.

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

homer-0.6.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homer-0.6.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file homer-0.6.0.tar.gz.

File metadata

  • Download URL: homer-0.6.0.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for homer-0.6.0.tar.gz
Algorithm Hash digest
SHA256 257cdff005de0e0310a6fe78f79875cee8b6bf3104eaa4171527f54bc97f988e
MD5 ae373c45f174538f75c1cd26ae0f0d5d
BLAKE2b-256 f1df1b0a6653065befc48cb179f7dfa194468094e1ebe0817538de033ebe9704

See more details on using hashes here.

File details

Details for the file homer-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: homer-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for homer-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7614304ae5e2f9658de3ff8732ea2bfbd0509416983e9e9c0c21a82b2a7520f2
MD5 c1bd52b53db45a24926b80deb14c18c3
BLAKE2b-256 aef0e342730d5a4192b255548362452cc2e9cf557e5fc8e35940ad5e358f44dd

See more details on using hashes here.

Supported by

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