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

multiple proxmox clusters - support setting site_id on each cluster config

Open ITJamie opened this issue 2 years ago • 2 comments

the current example config sets site_id under the netbox section. however multiple clusters likely exist across multiple sites.

i would suggest that an optional key should exist under the proxmox config blocks allowing overriding of the netbox site id

eg:


PLUGINS_CONFIG = {
    'netbox_proxbox': {
        'proxmox': [
            {
                'domain': 'proxbox.example.com',    # May also be IP address
                'http_port': 8006,
                'user': 'root@pam',   # always required
                'password': 'Strong@P4ssword', # only required, if you don't want to use token based authentication
                'token': {
                    'name': 'tokenID',	# Only type the token name and not the 'user@pam:tokenID' format
                    'value': '039az154-23b2-4be0-8d20-b66abc8c4686'
                },
                'ssl': False
            },
            # The following json is optional and applies only for multi-cluster use
            {
                'domain': 'proxbox2.example.com',    # May also be IP address
                'http_port': 8006,
                'user': 'root@pam',   # always required
                'password': 'Strong@P4ssword', # only required, if you don't want to use token based authentication
                'token': {
                    'name': 'tokenID',	# Only type the token name and not the 'user@pam:tokenID' format
                    'value': '039az154-23b2-4be0-8d20-b66abc8c4686'
                },
                'ssl': False,
                'netbox_site_id': 11, # site_id override
            }
        ],
        'netbox': {
            'domain': 'localhost',     # Ensure localhost is added to ALLOWED_HOSTS
            'http_port': 8001,     # Gunicorn port.
            'token': '0dd7cddfaee3b38bbffbd2937d44c4a03f9c9d38',
            'ssl': False,	# There is no support to SSL on Netbox yet, so let it always False.
            'settings': {
                'virtualmachine_role_id' : 0,
                'node_role_id' : 0,
                'site_id': 0
            }
        }
    }
}

ITJamie avatar Nov 09 '23 21:11 ITJamie

Hello

Any update regrading the feature ?

Thanks..

eliyahuadam avatar Dec 29 '23 08:12 eliyahuadam

Hi, We are really looking forward to this feature. If the movement is on task?

snk26 avatar Jan 12 '24 08:01 snk26