Skip to content

Commit

Permalink
refactor: Update example version and initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Peters committed Feb 27, 2023
1 parent 33fe7b1 commit 1ab1e3c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 3 additions & 1 deletion example/Dockerfile
@@ -1,4 +1,6 @@
FROM netboxcommunity/netbox:v3.0
FROM netboxcommunity/netbox:v3.4

RUN apt -y update && apt -y install git

COPY ./plugin_requirements.txt /
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
2 changes: 1 addition & 1 deletion example/configuration/plugins.py
@@ -1 +1 @@
PLUGINS = ["netbox_prometheus_sd"]
PLUGINS = ["netbox_prometheus_sd", "netbox_initializers"]
4 changes: 1 addition & 3 deletions example/docker-compose.yml
Expand Up @@ -46,15 +46,13 @@ services:
prometheus:
image: prom/prometheus:v2.30.3
volumes:
- ./configuration/prometheus.yml:/etc/prometheus/prometheus.yml
- ./configuration/prometheus.yml:/etc/prometheus/prometheus.yml:ro,z
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
- 9090:9090
depends_on:
- netbox
links:
- netbox
volumes:
netbox-media-files:
driver: local
Expand Down
3 changes: 3 additions & 0 deletions example/initializers/custom_fields.yml
@@ -0,0 +1,3 @@
text_field:
type: string
on_objects: ["dcim.models.DeviceType", "dcim.models.Device", "virtualization.models.VirtualMachine"]
File renamed without changes.
4 changes: 0 additions & 4 deletions example/initializers/sites.yml
Expand Up @@ -3,24 +3,20 @@
region: Downtown
status: active
facility: Amsterdam 1
asn: 12345
- name: AMS 2
slug: ams2
region: Downtown
status: active
facility: Amsterdam 2
asn: 54321
- name: AMS 3
slug: ams3
region: Suburbs
status: active
facility: Amsterdam 3
asn: 67890
tenant: tenant1
- name: SING 1
slug: sing1
region: Singapore
status: active
facility: Singapore 1
asn: 09876
tenant: tenant2
3 changes: 2 additions & 1 deletion example/plugin_requirements.txt
@@ -1 +1,2 @@
netbox-plugin-prometheus-sd
netbox-plugin-prometheus-sd @ git+https://github.com/flxpeters/netbox-plugin-prometheus-sd.git@main
netbox-initializers==3.4.*

0 comments on commit 1ab1e3c

Please sign in to comment.