Lower the default stunnel log level

Right now the default stunnel.conf log level is set at 'notice'
which, when we deploy redis, fills up the logs with the following
messages:
May 09 14:18:36 controller-1.redhat.local dockerd-current[19810]: 2018.05.09 14:18:36 LOG5[1:139972682520320]: connect_blocking: connected 127.0.0.1:6379
May 09 14:18:36 controller-1.redhat.local dockerd-current[19810]: 2018.05.09 14:18:36 LOG5[1:139972682520320]: Service [redis] connected remote server from 127.0.0.1:60412
May 09 14:18:36 controller-1.redhat.local stunnel[41495]: LOG5[1:139972682409728]: Service [redis] accepted connection from 172.17.1.21:60770
May 09 14:18:36 controller-1.redhat.local dockerd-current[19810]: 2018.05.09 14:18:36 LOG5[1:139972682409728]: Service [redis] accepted connection from 172.17.1.21:60770
May 09 14:18:36 controller-1.redhat.local stunnel[41495]: LOG5[1:139972682409728]: connect_blocking: connected 127.0.0.1:6379
May 09 14:18:36 controller-1.redhat.local dockerd-current[19810]: 2018.05.09 14:18:36 LOG5[1:139972682409728]: connect_blocking: connected 127.0.0.1:6379
May 09 14:18:36 controller-1.redhat.local stunnel[41495]: LOG5[1:139972682409728]: Service [redis] connected remote server from 127.0.0.1:60418
May 09 14:18:36 controller-1.redhat.local dockerd-current[19810]: 2018.05.09 14:18:36 LOG5[1:139972682409728]: Service [redis] connected remote server from 127.0.0.1:60418

Those messages are from the haproxy healthceck. Let's move the
default debug config to warning which will ignore the above errors.

Closes-Bug: #1770180

Change-Id: I93bd0048e85864fa9e62dc38c3575ec7b48e5df5
This commit is contained in:
Michele Baldessari 2018-05-09 16:17:50 +02:00
parent de4a61d7d8
commit a9c1bc3518
2 changed files with 6 additions and 0 deletions

View File

@ -31,10 +31,15 @@
# container.
# Defaults to 'no'
#
# [*debug*]
# (Optional) Sets the debug level in stunnel.conf
# Defaults to '4' which translates to 'warning'.
#
class tripleo::stunnel (
$manage_service = true,
$service_ensure = 'running',
$foreground = 'no',
$debug = 'warning',
){
package { 'stunnel':
ensure => 'present'

View File

@ -1 +1,2 @@
foreground = <%= @foreground %>
debug = <%= @debug %>