add fail2ban class

This commit is contained in:
Arne Teuke
2025-02-14 11:41:18 +01:00
parent 3ed73f6cb6
commit 78f5f6d87c
2 changed files with 7 additions and 2 deletions

View File

@@ -10,4 +10,9 @@ class cd_haproxy::main::config (
include cd_haproxy::server::service include cd_haproxy::server::service
if $hy_manage_fail2ban == true {
include cd_haproxy::monitoring::fail2ban
}
} }

View File

@@ -6,10 +6,10 @@ class cd_haproxy::monitoring::fail2ban (
) inherits cd_haproxy::params { ) inherits cd_haproxy::params {
require cd_fail2ban
if $hy_manage_fail2ban == true { if $hy_manage_fail2ban == true {
require cd_fail2ban
# configure filter # configure filter
file { '/etc/fail2ban/filter.d/haproxy.conf': file { '/etc/fail2ban/filter.d/haproxy.conf':