Skip to main content

A tool to launch ipmi for ovh servers without going through the manager

Project description

Netbox IPMI OVH Plugin

A plugin used to add a button in the dcim.device to allow easier access to the IPMI for OVH managed bare metal servers. Tested on NetBox v2.11.12, v3.0.0 and v3.1.7.

Installation

This follow the process of installing a plugin in NetBox [https://netbox.readthedocs.io/en/stable/plugins/]

Package Installation from PyPi, from the netbox virtualenv

source /opt/netbox/venv/bin/activate
pip install netbox-ipmi-ovh
cd /opt/netbox/netbox/
python3 manage.py migrate

Package Installation from source

git clone https://github.com/sanecz/netbox-ipmi-ovh
cd netbox-ipmi-ovh
source /opt/netbox/venv/bin/activate
pip3 install .
cd /opt/netbox/netbox/
python3 manage.py migrate

Enable the plugin

To enable the plugin, add/update in the configuration.py file

PLUGINS = [
    'nextbox_ipmi_ovh',
]
PLUGINS_CONFIG = {
    'netbox_ipmi_ovh_plugin': {
        'ovh_server_name_field': 'existing field or custom field',
	'ovh_endpoint_field': 'existing or custom field',
        'endpoints': {
            'account1-ovh-eu': {
	        'endpoint': 'ovh-eu',
	        'application_key': 'xxxx',
		'application_secret': 'yyyy',
		'consumer_key': 'zzzz'
	    },
	    'account2-soyoustart-ca': {
	        'endpoint': 'soyoustart-ca',
	        'application_key': 'xxxx',
		'application_secret': 'yyyy',
		'consumer_key': 'zzzz'	    
	    }
        }
    }
}

The fields ovh_server_name_field, ovh_endpoint_field and endpoints are mandatory.

Restart Netbox

sudo systemctl restart netbox

Required permissions

To be able to use the plugin, a user should have the following permissions:

  • netbox_ipmi_ovh.view_ipmi

Usage

A button will be present in dcim.devices to select the type of IPMI access you want to use. As of 01/02/2022, only kvmipHtml5URL, kvmipJnlp, serialOverLanURL and serialOverLanSshKey are available.

You can create custom fields to store required informations for the plugin to work (i.e the server name from OVH and the endpoint used for the api calls) or use existing fields (like asset tag or serial number of even the name), but be careful to fill correctly ovh_endpoint_field and ovh_server_name_field with the name of the fields you want to use, there is no default value.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_ipmi_ovh-1.0.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

netbox_ipmi_ovh-1.0.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file netbox_ipmi_ovh-1.0.2.tar.gz.

File metadata

  • Download URL: netbox_ipmi_ovh-1.0.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for netbox_ipmi_ovh-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dae1647689a3fe7b0e82fa8318478afc8feb0c8e7f74f2c5a1ba300ed71bff02
MD5 86aa5d2adb33ffea2864ef7289d90fea
BLAKE2b-256 7fdcc23dea52d0b1ac3687d1bd160beb62b6f18c3c06c3c5da7aabebd664ef0f

See more details on using hashes here.

File details

Details for the file netbox_ipmi_ovh-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: netbox_ipmi_ovh-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for netbox_ipmi_ovh-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06f336b655de42cfa80c7268bedc69d1d7b335c57aacc84bcde14792a6f1f0df
MD5 ae8c59e76cfa6d98a886de20a2c328ed
BLAKE2b-256 2704d34d08131bb6938e499163c5fba820f439bf5aae5ffd379b02615a6a6ed5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page