net-mgmt/telegraf: Allow Run as Root (#2520)

This commit is contained in:
Michael
2021-09-09 09:50:33 +02:00
committed by GitHub
parent 9ebb22b6fc
commit 311eccb638
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.12.0
PLUGIN_VERSION= 1.12.1
PLUGIN_COMMENT= Agent for collecting metrics and data
PLUGIN_DEPENDS= telegraf
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -12,6 +12,10 @@ WWW: https://www.influxdata.com/time-series-platform/telegraf/
Plugin Changelog
================
1.12.1
* Rename "Wheel Group" to "Run as Root" and set user permissions
1.12.0
* Allow to start telegraf with wheel group permissions
@@ -7,9 +7,9 @@
</field>
<field>
<id>general.wheelgroup</id>
<label>Wheel Group</label>
<label>Run as Root</label>
<type>checkbox</type>
<help>This will start the process with wheel group permission. Please use this with care, currently only needed for Unbound and Suricata.</help>
<help>This will start the process with wheel group and root user permission. Please use this with care, currently only needed for Unbound and Suricata.</help>
</field>
<field>
<id>general.interval</id>
@@ -1,5 +1,6 @@
{% if helpers.exists('OPNsense.telegraf.general.enabled') and OPNsense.telegraf.general.enabled == '1' %}
{% if OPNsense.telegraf.general.wheelgroup == '1' %}
telegraf_user="root"
telegraf_group="wheel"
{% endif %}
telegraf_var_script="/usr/local/opnsense/scripts/OPNsense/Telegraf/setup.sh"