mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/telegraf: Allow Run as Root (#2520)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user