diff options
author | Micah <micah@leap.se> | 2016-04-12 10:22:40 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-04-12 14:20:46 -0400 |
commit | 64635ed7ccf287ae0d6bab71837b5213b6790613 (patch) | |
tree | e9110a15cec9b0aa519d6ecc1315979d8c6e52d5 | |
parent | fead715f94551eb3600e449659ad6df12fffe641 (diff) |
Log stunnel server logs same as client (#8021)
stunnel server logs were not going to /var/log/stunnel4/*, but to
/var/log/syslog instead. This was different from stunnel client
logging, now its the same.
Change-Id: I2dc2024b77dbb65554fc7865b0e46aedf930c6d8
-rw-r--r-- | puppet/modules/site_stunnel/manifests/servers.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/puppet/modules/site_stunnel/manifests/servers.pp b/puppet/modules/site_stunnel/manifests/servers.pp index b6fac319..e76d1e9d 100644 --- a/puppet/modules/site_stunnel/manifests/servers.pp +++ b/puppet/modules/site_stunnel/manifests/servers.pp @@ -16,6 +16,8 @@ define site_stunnel::servers ( $rndfile = '/var/lib/stunnel4/.rnd', $debuglevel = '4' ) { + $logfile = "/var/log/stunnel4/${name}.log" + include site_config::x509::cert include site_config::x509::key include site_config::x509::ca @@ -35,7 +37,9 @@ define site_stunnel::servers ( pid => "/var/run/stunnel4/${pid}.pid", rndfile => '/var/lib/stunnel4/.rnd', debuglevel => $debuglevel, - sslversion => 'TLSv1'; + sslversion => 'TLSv1', + syslog => 'no', + output => $logfile; } # allow incoming connections on $accept_port |