This commit is contained in:
bboerni2 2025-10-07 16:05:01 +02:00
parent 3e99bbbf6a
commit 5cee074f67

View file

@ -12,14 +12,20 @@ PLUGINS = [
# "netbox_proxbox", # "netbox_proxbox",
] ]
# Hilfsvariable
diode_target = os.getenv("DIODE_GRPC_TARGET")
PLUGINS_CONFIG = { PLUGINS_CONFIG = {
"netbox_inventory": { "netbox_inventory": {
"sync_serial_to_device": True, "sync_serial_to_device": True,
"sync_asset_tag_to_device": True, "sync_asset_tag_to_device": True,
}, },
"netbox_diode_plugin": { "netbox_diode_plugin": {
"diode_target_override": os.getenv("DIODE_GRPC_TARGET"), "diode_target_override": diode_target,
"diode_username": os.getenv("DIODE_USERNAME", "diode"), "diode_username": os.getenv("DIODE_USERNAME", "diode"),
"netbox_to_diode_client_secret": os.getenv("NETBOX_TO_DIODE_CLIENT_SECRET"), "netbox_to_diode_client_secret": os.getenv("NETBOX_TO_DIODE_CLIENT_SECRET"),
"auth": {
"issuer": diode_target.replace("grpc://", "http://") + "/auth",
},
}, },
} }