Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2024 05:55:16 GMT
From:      Zsolt Udvari <uzsolt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 364d89e1c062 - main - sysutils/ipmi_exporter: Add listen-address configuration variable
Message-ID:  <202410280555.49S5tGT2016556@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=364d89e1c062f7a2b97615e978e5d94627a2c9e7

commit 364d89e1c062f7a2b97615e978e5d94627a2c9e7
Author:     Andreas E <norrland@nullbyte.se>
AuthorDate: 2024-10-28 05:51:33 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
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ć <meka@tilda.center> (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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410280555.49S5tGT2016556>