netbox: dns initial release#1152
Open
hatchmt wants to merge 1 commit into
Open
Conversation
Adds the NetBox DNS plugin (PyPI: netbox-plugin-dns) to a netbox container by appending it to /mod-pip-packages-to-install.list before the baseimage's init-mods-package-install runs. The user must add 'netbox_dns' to PLUGINS in configuration.py for the plugin to be loaded by NetBox. NetBox will then run migrations on startup to create the plugin's tables.
|
PR build pushed to |
Author
|
I redeployed my home install using the PR build, and it reinstalled the plugin successfully in the new container without error. Logs below: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This adds a new Docker mod,
netbox-dns, for thenetboxbase image. It installs the NetBox DNS plugin (PyPI:netbox-plugin-dns), which provides authoritative DNS data management (zones, records, views, name servers, etc.) inside NetBox.Benefits of this PR and context:
NetBox DNS is one of the most widely used NetBox plugins for managing DNS as part of network source-of-truth. Providing it as an official mod lets users add it to the LinuxServer NetBox image declaratively via
DOCKER_MODSrather than maintaining a custom image or local install script.How Has This Been Tested?
DOCKER_MODS=ghcr.io/hatchmt/mods:netbox-dns.pipinstallednetbox-plugin-dns, and that NetBox's migrations created the plugin's tables.'netbox_dns'toPLUGINSinconfiguration.py, verified the DNS plugin loads in the NetBox web UI and that zones/records can be created. Re-running the container confirmed the idempotency check skips reinstall when the package is already present.Source / References:
netbox-slurpit): https://github.com/linuxserver/docker-mods/tree/netbox-slurpit