Update telegraf to not use fail2ban
This commit is contained in:
parent
a224f657d9
commit
42f5e3ab62
1 changed files with 0 additions and 17 deletions
|
@ -8,19 +8,6 @@
|
|||
restartUnits = [ "telegraf.service" ];
|
||||
};
|
||||
|
||||
# Add telegraf to "wheel" to allow the use of sudo:
|
||||
users.users.telegraf = {
|
||||
extraGroups = [ "root" ];
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
# Allow the telegraf account to invoke sudo without a password
|
||||
security.sudo.extraConfig = ''
|
||||
Cmnd_Alias FAIL2BAN = /run/current-system/sw/bin/fail2ban-client status, /run/current-system/sw/bin/fail2ban-client status *
|
||||
telegraf ALL=(root) NOEXEC: NOPASSWD: FAIL2BAN
|
||||
Defaults!FAIL2BAN !logfile, !syslog, !pam_session
|
||||
'';
|
||||
|
||||
# Install the package
|
||||
environment.systemPackages = with pkgs; [
|
||||
lm_sensors
|
||||
|
@ -33,7 +20,6 @@
|
|||
systemd.services.telegraf = {
|
||||
path = with pkgs; [
|
||||
lm_sensors # sensors
|
||||
fail2ban # fail2ban-client
|
||||
linuxPackages.nvidia_x11 # nvidia-smi
|
||||
smartmontools # smartctl
|
||||
sudo # sudo
|
||||
|
@ -70,9 +56,6 @@
|
|||
processes = {};
|
||||
swap = {};
|
||||
system = {};
|
||||
# fail2ban = {
|
||||
# # use_sudo = true;
|
||||
# };
|
||||
intel_powerstat = {};
|
||||
net = {};
|
||||
nvidia_smi = {};
|
||||
|
|
Loading…
Reference in a new issue