added telegraf and sudo howto

This commit is contained in:
2023-11-20 10:36:58 +01:00
committed by buchel_k
co-authored by buchel_k
parent 605cc0290c
commit 0193e1f767
4 changed files with 72 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# Custom sudo Rules
Custom sudo rules can be specify in hiera as follows:
```yaml
aaa::sudo_rules:
- 'Defaults:telegraf !requiretty, !syslog'
- 'telegraf ALL=(root) NOPASSWD: /usr/lib/telegraf/scripts/nxserver_report.sh'
```
Beside that, if `aaa::allow_sudoers_d` is set to `true` (which is the default), you might also simply deploy a file to /etc/sudoers.d e.g. via a technique described in [Distribute Files](distribute_files).