Newer
Older
netbox-docker / configuration / plugins.py
# Add your plugins and plugin settings here.
# Of course uncomment this file out.

# To learn how to build images with your required plugins
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins

PLUGINS = [
    "netbox_secrets",
    "netbox_qrcode",
    "netbox_diode_plugin",
    "netbox_branching",
    "netbox_inventory",
]

PLUGINS_CONFIG = {
    #"netbox_diode_plugin": {
    #    # Auto-provision users for Diode plugin
    #    "auto_provision_users": False,
    #    
    #    # Diode gRPC target for communication with Diode server 
    #    "diode_target_override": "grpc://localhost:8080/diode",
    #    
    #    # User allowed for Diode to NetBox communication
    #    "diode_to_netbox_username": "diode-to-netbox",
    #    
    #    # User allowed for NetBox to Diode communication
    #    "netbox_to_diode_username": "netbox-to-diode",
    #    
    #    # User allowed for data ingestion
    #    "diode_username": "diode-ingestion",
    #},

    'netbox_qrcode': {
        'with_text': True,
        'text_fields': ['name', 'serial'],
        'font': 'CourierNewBold',
        'font_size': 0, # If the value is 0 or the line does not exist, then the text is automatically adjusted
        'custom_text': 'Under control of Skyworks\nContact Before Operation',
        'text_location': 'right',
        'qr_version': 1,
        'qr_error_correction': 2,
        'qr_box_size': 4,
        'qr_border': 4,
        # per object options
        'cable': {
            'qr_box_size': 2,
            'qr_border': 6,
        },
        'rack': {
            'text_fields': [
                #'site',
                'name',
                'facility_id',
                'tenant',
                'cf.cf_name'
            ]
        },
        'device': {
            'qr_box_size': 6,
            'custom_text': None,
        }
    },
}