netbox-proxbox icon indicating copy to clipboard operation
netbox-proxbox copied to clipboard

Different site_id for different clusters possible?

Open a118n opened this issue 2 years ago • 0 comments

Hello, I can see that multi-cluster support was added to the plugin, but I can't seem to figure out how to define different site_id for each of the cluster. For example I have the following clusters in the config:

PLUGINS_CONFIG = {
    'netbox_proxbox': {
        'proxmox': [
            {
                'domain': 'dc01-pve01.example.org',
                'http_port': 8006,
                'user': 'root@pam',
                'password': '123456',
                'ssl': False
            },
            {
                'domain': 'dc02-pve01.example.org',
                'http_port': 8006,
                'user': 'root@pam',
                'password': '123456',
                'ssl': False
            }
        ],
        'netbox': {
            'domain': 'localhost',
            'http_port': 8001,
            'token': 'abcgsuydsfkjdsklf12312',
            'ssl': False,
            'settings': {
                'virtualmachine_role_id' : 47,
                'node_role_id' : 29,
                'site_id': ???
            }
        }
    }
}

site_id is defined outside of clusters scope and is global for all of them?

a118n avatar Sep 04 '23 08:09 a118n