feat: added support for netbox_secrets plugin
This commit is contained in:
parent
f1ca9ab7eb
commit
8179050f37
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
*.sql.gz
|
||||
.netbox
|
||||
.python-version
|
||||
docker-compose.override.yml
|
||||
*.pem
|
||||
configuration/*
|
||||
!configuration/configuration.py
|
||||
|
9
Dockerfile-Plugins
Normal file
9
Dockerfile-Plugins
Normal file
@ -0,0 +1,9 @@
|
||||
FROM netboxcommunity/netbox:latest
|
||||
|
||||
COPY ./plugin_requirements.txt /opt/netbox/
|
||||
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt
|
||||
|
||||
# These lines are only required if your plugin has its own static files.
|
||||
COPY configuration/configuration.py /etc/netbox/config/configuration.py
|
||||
COPY configuration/plugins.py /etc/netbox/config/plugins.py
|
||||
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
|
@ -4,7 +4,7 @@
|
||||
# To learn how to build images with your required plugins
|
||||
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
|
||||
|
||||
# PLUGINS = ["netbox_bgp"]
|
||||
PLUGINS = ["netbox_secrets"]
|
||||
|
||||
# PLUGINS_CONFIG = {
|
||||
# "netbox_bgp": {
|
||||
|
19
docker-compose.override.yml
Normal file
19
docker-compose.override.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3.4'
|
||||
services:
|
||||
netbox:
|
||||
image: netbox:latest-plugins
|
||||
ports:
|
||||
- 8000:8080
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-Plugins
|
||||
netbox-worker:
|
||||
image: netbox:latest-plugins
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-Plugins
|
||||
netbox-housekeeping:
|
||||
image: netbox:latest-plugins
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-Plugins
|
1
plugin_requirements.txt
Normal file
1
plugin_requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
netbox-secrets
|
Reference in New Issue
Block a user