From nobody Thu Aug 22 16:11:44 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WqSrJ6mkVz5TBkh; Thu, 22 Aug 2024 16:11:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqSrJ5752z42Qn; Thu, 22 Aug 2024 16:11:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724343104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dP2OW6vsQMOr9IOp1wfeMrTS0nCVDTFll3LUvM1t9tM=; b=jawjkqdfX+HMZeEFugdyI6XixV3uwrfV7oqXO5YpEYaUuP6ov222QOrxlyXnTYtmHe8LBN Ez0I2Js6RuXgHuuFEzLRP6ONmEYmnrCwiVG1gglKrhZojkfiHbH53yWnj7u8MC6dJG++oE BzSPVNptwV74a/b5Uqtte8399cGxhNWpL9mEbeS5QRkk8btZbXk6w8+lAFUKZD5sebzNEg qPkRxkchsISEExg/puQsxVqlje6VC/ycO/2obTLTgieVALF1SUHBXsY3l9aqZeeUlrH+cy iqnobtoEdJIOSCZJTbFAy4ivM3oqjijVEjSsfiIGBnIGdjn23XBi8YEyQa192g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724343104; a=rsa-sha256; cv=none; b=aBlr3UkRmO2kRDg/nWEgMLDm9KZPd7NCy29HGubhe+5p77QtKFTVwKh5awHCZP9JZjFCnq 3C44xP6Rdvu6WHIFH4VvxXrIk1B+urNf5ZFobI2LnD1xyDgc5hWIgtlSsKf9J94RXEi3I9 aIwUJH7zUkZUyZkglPqMsXuA4qXLiJZhl/mO2g4Mtfpec6jjIpBdAbmDCAUA4TULEGb9iD xkuybsOi1ithfzTEHZwUi9sT/XX16xekU/0HJgfY0BULirEy0Cc7xklWPIa4ivCinaUyTA JDWNuHhqaN2ukgNay0tAulpGYoddtiSv/i4FaQSbFvp+UgtGktzW+ThiSIJKHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724343104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dP2OW6vsQMOr9IOp1wfeMrTS0nCVDTFll3LUvM1t9tM=; b=BH3W2O7hoI4tyUm9QDqIAmHVbojzovizN9qEISxIiBcAj5HEVAYkbfvpzaJo1xo3DANpRL WWkKlb6GZ3mk5EyaMkLOdPyE9+QWX8setiOVcUUvTxMVcKrRnIi1G7vSvgmHu0KyksCCqk OGXDI1p3kncqcRRMMl5fxO8bhkfX9jvlKzcRJGM4b43VqedR5SFKAvlEP3FC1eff5OgakC WgK5hsEQWz2qCX5xTmmtkserRiMsMO1CefZXGmGK0+04W+D4IaS4MhD1EXv2xzuzY3lNiz uvyJuw4mLZNC10makeLOmJfHWoaGH2eSL6lKSfXYi6LQ2qE/mQHlA0sLiNtywA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WqSrJ4kNwzZtL; Thu, 22 Aug 2024 16:11:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47MGBinT087998; Thu, 22 Aug 2024 16:11:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47MGBiKt087995; Thu, 22 Aug 2024 16:11:44 GMT (envelope-from git) Date: Thu, 22 Aug 2024 16:11:44 GMT Message-Id: <202408221611.47MGBiKt087995@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 28b399b1ec5e - main - net-mgmt/netbox-agent: Agent for the Netbox network automation List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 28b399b1ec5e8a830cc2e8e12abc941233e83d01 Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=28b399b1ec5e8a830cc2e8e12abc941233e83d01 commit 28b399b1ec5e8a830cc2e8e12abc941233e83d01 Author: Xavier Beaudouin AuthorDate: 2024-08-22 12:29:08 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-08-22 16:09:45 +0000 net-mgmt/netbox-agent: Agent for the Netbox network automation PR: 280993 Sponsored by: Bell Tower Integration Sponsored by: Klara, Inc. --- net-mgmt/Makefile | 1 + net-mgmt/netbox-agent/Makefile | 35 +++++++++++++++++++++++++++++++++++ net-mgmt/netbox-agent/distinfo | 3 +++ net-mgmt/netbox-agent/pkg-descr | 4 ++++ 4 files changed, 43 insertions(+) diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index d0036adf6f00..127eeaea27c7 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -186,6 +186,7 @@ SUBDIR += ndpmon SUBDIR += net-snmp SUBDIR += netbox + SUBDIR += netbox-agent SUBDIR += netdata SUBDIR += netdata-go SUBDIR += netdisco diff --git a/net-mgmt/netbox-agent/Makefile b/net-mgmt/netbox-agent/Makefile new file mode 100644 index 000000000000..5a6153807834 --- /dev/null +++ b/net-mgmt/netbox-agent/Makefile @@ -0,0 +1,35 @@ +PORTNAME= netbox-agent +DISTVERSIONPREFIX= v +DISTVERSION= 0.7.2-77 +DISTVERSIONSUFFIX=-g6ae055c +CATEGORIES= net-mgmt python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kiwi@oav.net +COMMENT= Agent for the Netbox network automation +WWW= https://github.com/KlaraSystems/netbox-agent + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${LOCALBASE}/bin/ipmitool:sysutils/ipmitool \ + ${LOCALBASE}/sbin/dmidecode:sysutils/dmidecode \ + ${LOCALBASE}/sbin/lldpctl:net-mgmt/lldpd \ + ${PYTHON_PKGNAMEPREFIX}distro>=1.8.0:sysutils/py-distro@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jsonargparse>=3.11.2:devel/py-jsonargparse@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}netaddr>=1.0:net/py-netaddr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}netifaces-plus>=0.11:net/py-netifaces-plus@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=5.9.0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pynetbox>=7:net-mgmt/py-pynetbox@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-slugify>=8.0.1:textproc/py-python-slugify@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sysctl>=0.3.0:devel/py-sysctl@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_ACCOUNT= KlaraSystems + +USE_PYTHON= autoplist distutils pytest + +NO_ARCH= yes + +.include diff --git a/net-mgmt/netbox-agent/distinfo b/net-mgmt/netbox-agent/distinfo new file mode 100644 index 000000000000..cf7c77d3bee4 --- /dev/null +++ b/net-mgmt/netbox-agent/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724326843 +SHA256 (KlaraSystems-netbox-agent-v0.7.2-77-g6ae055c_GH0.tar.gz) = 2168a07512dacc39675ff6952b72cf08b621fbf743cc9e5f9a0b8a1f5383f838 +SIZE (KlaraSystems-netbox-agent-v0.7.2-77-g6ae055c_GH0.tar.gz) = 92483 diff --git a/net-mgmt/netbox-agent/pkg-descr b/net-mgmt/netbox-agent/pkg-descr new file mode 100644 index 000000000000..c5fbe53c2cc3 --- /dev/null +++ b/net-mgmt/netbox-agent/pkg-descr @@ -0,0 +1,4 @@ +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.