Files

26 lines
814 B
ObjectPascal
Raw Permalink Normal View History

## confdroid_haproxy::main::config.pp
# Module name: confdroid_haproxy
2018-04-24 15:32:11 +02:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages module logic for confdroid_haproxy.
2018-04-24 15:32:11 +02:00
##############################################################################
class confdroid_haproxy::main::config (
2018-04-24 15:32:11 +02:00
) inherits confdroid_haproxy::params {
include confdroid_haproxy::server::service
2018-04-24 15:32:11 +02:00
2025-02-14 11:41:18 +01:00
if $hy_manage_fail2ban == true {
include confdroid_haproxy::monitoring::fail2ban
2025-02-14 11:41:18 +01:00
}
2026-09-07 15:44:39 +02:00
if $hy_manage_nagios == true {
include confdroid_haproxy::monitoring::target
}
if $hy_selinux_allow_stats == true {
exec { 'setsebool haproxy_connect_any on':
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
onlyif => '/usr/sbin/getsebool haproxy_connect_any | /usr/bin/grep -q " --> off$"',
}
}
2018-04-24 15:32:11 +02:00
}