Grafana: Move filter to fail2ban-role

This commit is contained in:
phil 2023-11-20 11:19:23 +01:00
parent 16e4c28603
commit 90132f42d5
3 changed files with 0 additions and 29 deletions

View file

@ -1,10 +0,0 @@
[INCLUDES]
before = common.conf
[Definition]
failregex = ^ lvl=[a-zA-z]* msg=\"Invalid username or password\" (?:\S*=(?:\".*\"|\S*) )*remote_addr=<HOST>
ignoreregex =
[Init]
datepattern = ^t=%%Y-%%m-%%dT%%H:%%M:%%S%%z

View file

@ -1,7 +0,0 @@
[grafana]
enabled = true
findtime = 3600
bantime = 3600
port = http,https
filter = grafana
logpath = /var/log/grafana/grafana.log

View file

@ -24,15 +24,3 @@
dest: "/etc/monit/conf-enabled/grafana" dest: "/etc/monit/conf-enabled/grafana"
mode: 0644 mode: 0644
notify: reload monit notify: reload monit
- name: "grafana | fail2ban-Konfiguration kopieren"
ansible.builtin.copy:
src: "fail2ban/{{ item.src }}"
dest: "/etc/fail2ban/{{ item.dest }}"
mode: 0644
loop:
- src: jail.conf
dest: jail.d/grafana.conf
- src: filter.conf
dest: filter.d/grafana.conf
notify: reload fail2ban