Do not run haproxy in chroot
Chroot prevents haproxy from logging into /dev/log and that is an issue. There is no need to run it in chroot as well. Closes-bug: #1350835 Change-Id: Ib161fced734344815035b4ddfcf28bfda11a0cb7 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
9a64237c70
commit
9877025db8
@ -11,12 +11,21 @@ class cluster::haproxy (
|
||||
|
||||
package { 'haproxy': }
|
||||
|
||||
#NOTE(bogdando) we want defaults w/o chroot
|
||||
# and this override looks the only possible if
|
||||
# upstream manifests must be kept intact
|
||||
$global_options = {
|
||||
'log' => '/dev/log local0',
|
||||
'pidfile' => '/var/run/haproxy.pid',
|
||||
'maxconn' => $haproxy_maxconn,
|
||||
'user' => 'haproxy',
|
||||
'group' => 'haproxy',
|
||||
'daemon' => '',
|
||||
'stats' => 'socket /var/lib/haproxy/stats',
|
||||
}
|
||||
|
||||
class { 'haproxy::base':
|
||||
global_options => merge($::haproxy::params::global_options,
|
||||
{
|
||||
'log' => '/dev/log local0',
|
||||
'maxconn' => $haproxy_maxconn
|
||||
}),
|
||||
global_options => $global_options,
|
||||
defaults_options => merge($::haproxy::params::defaults_options,
|
||||
{'mode' => 'http'}),
|
||||
use_include => true,
|
||||
|
Loading…
Reference in New Issue
Block a user