From nobody Mon Oct 28 05:55:16 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 4XcN042t94z5Zgfm; Mon, 28 Oct 2024 05:55:16 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XcN042McQz4fp2; Mon, 28 Oct 2024 05:55:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730094916; 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=vlmOrb/1fir75Whx/+/Hn+C+idaok3GSGgb+MTRBoPY=; b=yadW2AAkyOj6ibuMVbdhAypxMNATsNL8tgdPgcE6pjCtWKdThSZRtJ3Shw9R2hR4d8IcnL lbh9mwAf1w6QSSdNY/PXzN+gVCMh3n68VAO6x5UP867+teY/CLCQpZ+XNw3mZg8Pz/qpNc SQ8i59f6RyyQY54jqcgBwVz3oJ2Wp1zEPv0vrkhF0/elMXsU9Omo9m0m3bnOJmSQ76uhe1 X01FMMO7mLFz8Wc/otYQQhIUJ6exlB5UXYElfX/MA7GhCcnq1UDzPjCBtB6Mto+7WsOpSJ hvxN/N0eN3jqIdNbcBnLy/leEpd1kURExsO9PMbDadO5Cw28nmY9jQoJIi6aqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730094916; 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=vlmOrb/1fir75Whx/+/Hn+C+idaok3GSGgb+MTRBoPY=; b=sL4I1A6CWKIDoGyqpmh3tV5SVd6NzE8A+78pO40o8wGtHaQq8s3fD+wTyxR1bA7lw+KaUI nP459Z/hLOWjCDqiM43wlEi252Jbmt7sFOu9L5kkRJ2hnF4JTVte9a361O/AeE+9Z7UF7n R5GiwVxWcu2KR/Xry3R5aYu60cVFc6/rDrk7I1jk5C3u+veTmI5nCFGpNXPj1dwqx5s994 YzNwgumWNaHqLjwy0y4QteyQMEAd/xhMcfD5M0iBUJgDxI+npzaIApGZxLVpsxLZW1j/Pk 8rjTP42UEizMIeH/LiSRQOvEU5rpw7ar3lfJ/+hLWwzRCJt1RGDmrR0/9InCRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730094916; a=rsa-sha256; cv=none; b=Hm9R+cBlVndNArV/0fkl+ehAJ6KSJ3qNS29ZhbgAG1KPNblgjRIXQd8f7PKWe2s946ZHqJ P+clF7ydosRaN5eRXTXb1Mfkb3zmFTbcqjUmgHv/ADKMWFTMF4pg20OVO9tR85hMBg+k1Y KHBsBUqyJprxAvs2f8VKEXLoQl+krPM3ctXmgxnJVT67yO08qXC/ZEKBstDKI1NZtGrTph TPv+bcz9rgIBdsWRcDhOqj1zdPoM6Bj2JZNlj21GVitq4pgWZHbFoentqaCZwkzNpxJrHm O0HmAImNj2zzTeyPdj/yrkviOXZ4veTQvWyVYdshHEEQ/2aifTjISLC+SF7rKQ== 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 4XcN041SKyzRDR; Mon, 28 Oct 2024 05:55:16 +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 49S5tGDe016559; Mon, 28 Oct 2024 05:55:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49S5tGT2016556; Mon, 28 Oct 2024 05:55:16 GMT (envelope-from git) Date: Mon, 28 Oct 2024 05:55:16 GMT Message-Id: <202410280555.49S5tGT2016556@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Zsolt Udvari Subject: git: 364d89e1c062 - main - sysutils/ipmi_exporter: Add listen-address configuration variable 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: uzsolt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 364d89e1c062f7a2b97615e978e5d94627a2c9e7 Auto-Submitted: auto-generated The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=364d89e1c062f7a2b97615e978e5d94627a2c9e7 commit 364d89e1c062f7a2b97615e978e5d94627a2c9e7 Author: Andreas E AuthorDate: 2024-10-28 05:51:33 +0000 Commit: Zsolt Udvari CommitDate: 2024-10-28 05:51:33 +0000 sysutils/ipmi_exporter: Add listen-address configuration variable Add separate configuration variable in the same way as sysutils/node_exporter has for configuring a specific IP/hostname to listen on. PR: 281453 Approved by: Goran Mekić (maintainer) --- sysutils/ipmi_exporter/files/ipmi_exporter.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysutils/ipmi_exporter/files/ipmi_exporter.in b/sysutils/ipmi_exporter/files/ipmi_exporter.in index e97363374681..215dec45e6c6 100644 --- a/sysutils/ipmi_exporter/files/ipmi_exporter.in +++ b/sysutils/ipmi_exporter/files/ipmi_exporter.in @@ -11,6 +11,9 @@ # Default: NO # ipmi_exporter_config (str): Set to the path of configuration file. # Default: "" +# ipmi_exporter_listen_address (str): Set to the IP or hostname and port to bind to. +# Default: ":9290" + . /etc/rc.subr name=ipmi_exporter @@ -19,11 +22,14 @@ load_rc_config $name : ${ipmi_exporter_enable:="NO"} : ${ipmi_exporter_config:=""} +: ${ipmi_exporter_listen_address:=":9290"} pidfile="/var/run/${name}.pid" command="/usr/sbin/daemon" procname="%%PREFIX%%/bin/${name}" -command_args="-S -p ${pidfile} ${procname} --config.file=\"${ipmi_exporter_config}\"" +command_args="-S -p ${pidfile} ${procname} \ + --web.listen-address=${ipmi_exporter_listen_address} \ + --config.file=\"${ipmi_exporter_config}\"" start_precmd="${name}_precmd" ipmi_exporter_precmd()