add fail2ban class
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user