summaryrefslogtreecommitdiff
path: root/data/templates/monitoring/override.conf.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 19:15:31 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 19:15:31 +0200
commit7c71e956e8e1779acd82b130ea149ec761520953 (patch)
treef0c47238003475b9147c68ee00c2908f872c5a0c /data/templates/monitoring/override.conf.j2
parentc621175631ab23b7218d1aef7ad0f46a46cb77bc (diff)
downloadvyos-1x-7c71e956e8e1779acd82b130ea149ec761520953.tar.gz
vyos-1x-7c71e956e8e1779acd82b130ea149ec761520953.zip
telegraf: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/monitoring/override.conf.j2')
-rw-r--r--data/templates/monitoring/override.conf.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/monitoring/override.conf.j2 b/data/templates/monitoring/override.conf.j2
new file mode 100644
index 000000000..f8f150791
--- /dev/null
+++ b/data/templates/monitoring/override.conf.j2
@@ -0,0 +1,7 @@
+[Unit]
+After=vyos-router.service
+ConditionPathExists=/run/telegraf/vyos-telegraf.conf
+[Service]
+Environment=INFLUX_TOKEN={{ authentication.token }}
+CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_ADMIN
+AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN