Allow specifying an arbitrary path to NetBox's configuration module on init #6091

Closed
opened 2025-12-29 19:36:41 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Feb 15, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.8

Feature type

New functionality

Proposed functionality

Allow NetBox administrators to pass an arbitrary path to the desired configuration module when initializing NetBox. An environment variable should suffice for this.

The current module is hardcoded as netbox.configuration, referencing the prescribed configuration file at ${working_dir}/netbox/configuration.py. We'll retain this as the default path, but defer to the `NETBOX_CONFIGURATION environment variable, if set.

Use case

This grants NetBox admins additional flexibility in how NetBox is installed and configured. It also simplifies our CI setup slightly.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Feb 15, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.8 ### Feature type New functionality ### Proposed functionality Allow NetBox administrators to pass an arbitrary path to the desired configuration module when initializing NetBox. An environment variable should suffice for this. The current module is hardcoded as `netbox.configuration`, referencing the prescribed configuration file at `${working_dir}/netbox/configuration.py`. We'll retain this as the default path, but defer to the `NETBOX_CONFIGURATION environment variable, if set. ### Use case This grants NetBox admins additional flexibility in how NetBox is installed and configured. It also simplifies our CI setup slightly. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:36:41 +01:00
adam closed this issue 2025-12-29 19:36:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6091