Netbox Plugin Install netbox-secretstore

Install Plugin netbox-secretstore

source /opt/netbox/venv/bin/activate
pip install netbox-secretstore netbox_plugin_extensions

Output

Collecting netbox-secretstore
  Downloading netbox_secretstore-1.0.11-py3-none-any.whl (64 kB)
     |████████████████████████████████| 64 kB 377 kB/s
Collecting pycryptodome
  Downloading pycryptodome-3.12.0-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 1.8 MB/s
Collecting netbox-plugin-extensions>=1.0.8
  Downloading netbox_plugin_extensions-1.0.8-py3-none-any.whl (27 kB)
Collecting importlib
  Downloading importlib-1.0.4.zip (7.1 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: importlib
  Building wheel for importlib (setup.py) ... done
  Created wheel for importlib: filename=importlib-1.0.4-py3-none-any.whl size=5857 sha256=cb043dac521ca858a69a81cbe9118dfac149a1575864afe963bfba76aeb64337
  Stored in directory: /root/.cache/pip/wheels/66/d5/91/d3087e750eb0957b46f68e9c3d0d45a93ea344220c87ab1583
Successfully built importlib
Installing collected packages: importlib, pycryptodome, netbox-plugin-extensions, netbox-secretstore
Successfully installed importlib-1.0.4 netbox-plugin-extensions-1.0.8 netbox-secretstore-1.0.11 pycryptodome-3.12.0
WARNING: You are using pip version 21.3; however, version 21.3.1 is available.
You should consider upgrading via the '/opt/netbox-3.0.7/venv/bin/python3 -m pip install --upgrade pip' command.

Enable the Plugin
In configuration.py, add the plugin’s name to the PLUGINS list:

nano /opt/netbox/netbox/netbox/configuration.py

add

PLUGINS = [
'netbox_plugin_extensions',
'netbox_secretstore',
]

Run Database Migrations

If the plugin introduces new database models, run the provided schema migrations:

source /opt/netbox/venv/bin/activate

cd /opt/netbox/netbox/

python3 manage.py migrate

Collect Static Files
Plugins may package static files to be served directly by the HTTP front end. Ensure that these are copied to the static root directory with the collectstatic management command:

cd /opt/netbox/netbox/

python3 manage.py collectstatic

Restart WSGI Service
Restart the WSGI service to load the new plugin:

systemctl restart netbox

 

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.