From b092079820bb34e4f9138ab18a75480240f4a7c1 Mon Sep 17 00:00:00 2001 From: Cyril LEVIS Date: Wed, 23 Feb 2022 14:44:30 +0100 Subject: [PATCH] chore: add rpmenv config for rpm packaging as a virtualenv https://github.com/kevinconway/rpmvenv --- rpmenv.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rpmenv.json diff --git a/rpmenv.json b/rpmenv.json new file mode 100644 index 0000000..0c70c7d --- /dev/null +++ b/rpmenv.json @@ -0,0 +1,27 @@ +{ + "extensions": { + "enabled": ["python_venv", "blocks"] + }, + "core": { + "group": "Application/System", + "license": "Apache2", + "name": "netbox-agent", + "summary": "NetBox agent for server", + "url": "https://github.com/Solvik/netbox-agent", + "version": "0.7.0", + "requires": ["lshw"] + }, + "python_venv": { + "python": "python3.6", + "requirements": ["requirements.txt"], + "name": "netbox-agent", + "path": "/opt/" + }, + "blocks": { + "post": ["ln -sf /opt/netbox-agent/bin/netbox_agent /usr/bin/netbox_agent"], + "desc": [ + "This project aims to create hardware automatically into Netbox based on standard tools (dmidecode, lldpd, parsing /sys/, etc).", + "The goal is to generate an existing infrastructure on Netbox and have the ability to update it regularly by executing the agent." + ] + } +}