2025-09-30 09:47:51 +00:00
|
|
|
import os
|
|
|
|
|
|
2025-09-26 05:55:04 +00:00
|
|
|
PLUGINS = [
|
|
|
|
|
"netbox_topology_views",
|
|
|
|
|
"netbox_lifecycle",
|
2025-09-26 09:02:18 +00:00
|
|
|
"netbox_floorplan",
|
2025-09-26 09:53:16 +00:00
|
|
|
"netbox_lists",
|
|
|
|
|
"netbox_inventory",
|
|
|
|
|
"netbox_reorder_rack",
|
2025-09-29 07:04:55 +00:00
|
|
|
"netbox_diode_plugin",
|
2025-09-29 09:06:33 +00:00
|
|
|
"netbox_initializers",
|
2025-09-29 05:55:59 +00:00
|
|
|
# "netbox_proxbox",
|
2025-10-14 05:51:04 +00:00
|
|
|
"netbox_bgp",
|
|
|
|
|
"netbox_dns",
|
2025-09-26 05:55:04 +00:00
|
|
|
]
|
|
|
|
|
|
2025-10-07 14:05:01 +00:00
|
|
|
# Hilfsvariable
|
|
|
|
|
diode_target = os.getenv("DIODE_GRPC_TARGET")
|
|
|
|
|
|
2025-09-26 09:53:16 +00:00
|
|
|
PLUGINS_CONFIG = {
|
|
|
|
|
"netbox_inventory": {
|
|
|
|
|
"sync_serial_to_device": True,
|
|
|
|
|
"sync_asset_tag_to_device": True,
|
|
|
|
|
},
|
2025-09-29 07:04:55 +00:00
|
|
|
"netbox_diode_plugin": {
|
2025-10-07 14:05:01 +00:00
|
|
|
"diode_target_override": diode_target,
|
2025-09-30 09:47:51 +00:00
|
|
|
"diode_username": os.getenv("DIODE_USERNAME", "diode"),
|
|
|
|
|
"netbox_to_diode_client_secret": os.getenv("NETBOX_TO_DIODE_CLIENT_SECRET"),
|
2025-10-07 14:05:01 +00:00
|
|
|
"auth": {
|
|
|
|
|
"issuer": diode_target.replace("grpc://", "http://") + "/auth",
|
|
|
|
|
},
|
2025-09-29 07:04:55 +00:00
|
|
|
},
|
2025-10-14 05:51:04 +00:00
|
|
|
"netbox_bgp": {
|
|
|
|
|
"top_level_menu": True,
|
|
|
|
|
},
|
|
|
|
|
"netbox_dns": {
|
|
|
|
|
# Beispiele: IPAM-DNSsync o. Templates später konfigurierbar
|
|
|
|
|
}
|
2025-09-26 09:53:16 +00:00
|
|
|
}
|