22 lines
726 B
Puppet
22 lines
726 B
Puppet
## confdroid_haproxy::main::config.pp
|
|
# Module name: confdroid_haproxy
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @summary Class manages module logic for confdroid_haproxy.
|
|
##############################################################################
|
|
class confdroid_haproxy::main::config (
|
|
|
|
) inherits confdroid_haproxy::params {
|
|
include confdroid_haproxy::server::service
|
|
|
|
if $hy_manage_fail2ban == true {
|
|
include confdroid_haproxy::monitoring::fail2ban
|
|
}
|
|
|
|
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$"',
|
|
}
|
|
}
|
|
}
|