2024-10-06 10:15:20 -05:00
|
|
|
# https://github.com/netbox-community/netbox-docker/blob/release/configuration/extra.py
|
|
|
|
|
|
|
|
CENSUS_REPORTING_ENABLED = False
|
|
|
|
LOGIN_PERSISTENCE = True
|
|
|
|
|
|
|
|
# BUG: pynetbox does not send token with version requests
|
|
|
|
# https://github.com/netbox-community/Device-Type-Library-Import/issues/134
|
|
|
|
# https://github.com/netbox-community/pynetbox/pull/641
|
2025-01-07 21:49:25 -06:00
|
|
|
# ?? LOGIN_REQUIRED = False
|
2024-10-06 10:15:20 -05:00
|
|
|
LOGIN_REQUIRED = True
|
|
|
|
|
2024-10-06 18:52:28 -05:00
|
|
|
MEDIA_ROOT = "/opt/netbox/netbox/media" # Default /opt/netbox/media
|
2024-10-06 10:15:20 -05:00
|
|
|
TIME_ZONE = "America/Chicago"
|
|
|
|
|
2025-01-07 21:49:25 -06:00
|
|
|
# https://netboxlabs.com/docs/netbox/en/stable/plugins/installation/
|
|
|
|
# TODO: Upgrade to v4.2 when supported by plugins
|
|
|
|
#!! "ImproperlyConfigured: Application labels aren't unique, duplicates: <plugin>" means incompatible version
|
2024-10-06 10:15:20 -05:00
|
|
|
PLUGINS = [
|
|
|
|
"netbox_acls",
|
2024-10-13 17:15:14 -05:00
|
|
|
"netbox_attachments",
|
2024-10-06 10:15:20 -05:00
|
|
|
"netbox_dns",
|
2024-10-12 09:03:40 -05:00
|
|
|
"netbox_interface_synchronization",
|
2025-01-15 19:16:14 -06:00
|
|
|
"netbox_inventory",
|
2025-01-07 21:49:25 -06:00
|
|
|
# "netbox_lists",
|
2024-10-06 10:15:20 -05:00
|
|
|
"netbox_otp_plugin",
|
|
|
|
"netbox_reorder_rack",
|
2025-01-07 21:49:25 -06:00
|
|
|
# "netbox_routing",
|
2025-01-16 17:02:57 -06:00
|
|
|
"netbox_secrets",
|
2024-10-13 17:15:14 -05:00
|
|
|
"netbox_storage",
|
2024-10-06 10:15:20 -05:00
|
|
|
"netbox_topology_views",
|
2025-01-15 19:16:14 -06:00
|
|
|
"nextbox_ui_plugin",
|
2025-01-07 21:49:25 -06:00
|
|
|
# "slurpit_netbox",
|
2024-10-06 10:15:20 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
PLUGINS_CONFIG = {
|
|
|
|
"netbox_acls": {"top_level_menu": True},
|
|
|
|
"netbox_otp_plugin": {"otp_required": False},
|
|
|
|
"netbox_secrets": {"top_level_menu": True},
|
|
|
|
"netbox_topology_views": {"allow_coordinates_saving": True},
|
|
|
|
}
|
2025-01-17 10:05:03 -06:00
|
|
|
|
|
|
|
shortcuts = """
|
|
|
|
## [Racks](/dcim/rack-elevations/)
|
|
|
|
## [Topology](/plugins/netbox_topology_views/topology/)
|
|
|
|
## [Topology v2](/plugins/nextbox-ui/topology/?filter_id=1)
|
|
|
|
"""
|
|
|
|
|
|
|
|
# https://netboxlabs.com/docs/netbox/en/stable/configuration/default-values/#default_dashboard
|
|
|
|
DEFAULT_DASHBOARD = [
|
|
|
|
{
|
|
|
|
"widget": "extras.NoteWidget",
|
|
|
|
"width": 3,
|
|
|
|
"height": 3,
|
|
|
|
"title": "Shortcuts",
|
|
|
|
"color": "white",
|
|
|
|
"config": {"content": shortcuts},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"widget": "extras.NoteWidget",
|
|
|
|
"width": 9,
|
|
|
|
"height": 3,
|
|
|
|
"title": "TODO",
|
|
|
|
"color": "red",
|
|
|
|
"config": {"content": "Nothing to do (yet)."},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"widget": "extras.ObjectListWidget",
|
|
|
|
"width": 12,
|
|
|
|
"height": 4,
|
|
|
|
"title": "Journal",
|
|
|
|
"color": "orange",
|
|
|
|
"config": {
|
|
|
|
"model": "extras.journalentry",
|
|
|
|
"page_size": 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"widget": "extras.ObjectListWidget",
|
|
|
|
"width": 12,
|
|
|
|
"height": 5,
|
|
|
|
"title": "Changelog",
|
|
|
|
"color": "black",
|
|
|
|
"config": {
|
|
|
|
"model": "core.objectchange",
|
|
|
|
"page_size": 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|