add helpers

This commit is contained in:
Patrick CAO HUU THIEN 2022-12-13 14:03:46 +01:00
parent 09f00ce43d
commit 7311cb7528
1 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,9 @@ resource "null_resource" "fail2ban_exporter" {
"echo '# install helpers'",
"ln -s /etc/fail2ban /root/fail2ban",
"ln -s 'fail2ban-client status' /etc/fail2ban/0_status",
"ln -s 'fail2ban-client set sshd unbanip x.x.x.x' /etc/fail2ban/1_unban",
"ln -s 'fail2ban-client reload sshd' /etc/fail2ban/2_reload",
"ln -s 'fail2ban-client banned' /etc/fail2ban/1_banned",
"ln -s 'fail2ban-client unban <ip> <ip>' /etc/fail2ban/1_unban",
"ln -s 'fail2ban-client reload' /etc/fail2ban/2_reload",
#
"echo '## fail2ban-prometheus-exporter'",
# dw binary -- DONT WORK on alpine