Update sudo config recommendation (#5337)

This commit is contained in:
vignemail1
2019-01-24 19:54:25 +01:00
committed by Daniel Nelson
parent 35d18d3fd7
commit 7a229e25a6
7 changed files with 68 additions and 13 deletions

View File

@@ -25,10 +25,19 @@ AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN
### Using sudo
You may edit your sudo configuration with the following:
You will need the following in your telegraf config:
```toml
[[inputs.ipset]]
use_sudo = true
```
```sudo
telegraf ALL=(root) NOPASSWD: /sbin/ipset save
You will also need to update your sudoers file:
```bash
$ visudo
# Add the following line:
Cmnd_Alias IPSETSAVE = /sbin/ipset save
telegraf ALL=(root) NOPASSWD: IPSETSAVE
Defaults!IPSETSAVE !logfile, !syslog, !pam_session
```
### Configuration