From 104de2a3c9db8b1f66b3d6864a24df60b124a7e6 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Mon, 7 Mar 2022 16:11:22 -0500 Subject: [PATCH] Update init.sls to avoid telegraf apparmor issues See #2560 --- salt/telegraf/init.sls | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/salt/telegraf/init.sls b/salt/telegraf/init.sls index 600d7ddf7..3988de0d7 100644 --- a/salt/telegraf/init.sls +++ b/salt/telegraf/init.sls @@ -8,7 +8,7 @@ include: - ssl -# Add Telegraf to monitor all the things. +# add Telegraf to monitor all the things tgraflogdir: file.directory: - name: /opt/so/log/telegraf @@ -46,8 +46,8 @@ tgrafconf: - source: salt://telegraf/etc/telegraf.conf - show_changes: False -#this file will be read by telegraf to send node details(management interface, monitor interface, etc) -# into influx so that grafan can build dashboards using queries +# this file will be read by telegraf to send node details (management interface, monitor interface, etc) +# into influx so that Grafana can build dashboards using queries node_config: file.managed: - name: /opt/so/conf/telegraf/node_config.json @@ -57,6 +57,7 @@ node_config: so-telegraf: docker_container.running: - image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-telegraf:{{ VERSION }} + - security_opt: apparmor:unconfined - environment: - HOST_PROC=/host/proc - HOST_ETC=/host/etc