feat: add NetBox plugin store
CI / php-store (push) Waiting to run
CI / python-components (push) Waiting to run

This commit is contained in:
2026-08-24 20:51:25 +02:00
commit f36d6be511
135 changed files with 15160 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
[agent]
socket_path = "/run/netbox-store-agent/agent.sock"
journal_path = "/var/lib/netbox-store-agent/journal.sqlite3"
lock_path = "/run/lock/netbox-store-agent.lifecycle.lock"
backup_dir = "/var/lib/netbox-store-agent/backups"
dry_run = true
require_root = true
require_peer_credentials = true
# Replace/add the numeric UID or effective GID used by the NetBox service.
allowed_peer_uids = [0]
allowed_peer_gids = [0]
socket_mode = 0o660
socket_uid = 0
socket_gid = 0
max_request_bytes = 65536
connection_timeout_seconds = 5
worker_threads = 1
[store]
base_url = "https://store.example.invalid"
plugin_endpoint_template = "/api/v1/plugins/{plugin_slug}/"
release_endpoint_template = "/api/v1/plugins/{plugin_slug}/releases/{version}/"
timeout_seconds = 10
max_catalog_bytes = 1048576
max_artifact_bytes = 268435456
allow_private_addresses = false
allow_http_for_testing = false
# Add an artifact origin only when releases intentionally use that origin.
allowed_hosts = ["store.example.invalid"]
# bearer_token_file = "/etc/netbox-store-agent/store.token"
# ca_file = "/etc/ssl/certs/internal-store-ca.pem"
[paths]
allowed_root = "/opt/netbox"
include_path = "/opt/netbox/netbox/netbox/store_plugins.py"
requirements_path = "/opt/netbox/local_requirements_store.txt"
temp_dir = "/var/lib/netbox-store-agent/tmp"
[commands]
python_path = "/opt/netbox/venv/bin/python"
manage_path = "/opt/netbox/netbox/manage.py"
systemctl_path = "/usr/bin/systemctl"
services = ["netbox", "netbox-rq"]
command_timeout_seconds = 900
[policy]
netbox_version = "4.6.8"
min_supported_netbox = "4.6.5"
max_supported_netbox = "4.6.8"
self_plugin_slugs = ["netbox-store", "netbox-plugin-store", "netbox_plugin_store"]
allow_prereleases = false
require_release_for_enable = true