Removed /var/spool/rsyslog directory creation if TLS is not used.

This commit is contained in:
Timo Mkinen 2012-08-22 12:24:41 +03:00
parent 4c306cbf81
commit d9ed7a8cae

View file

@ -161,6 +161,7 @@ class syslog::client::rsyslog {
notify => Service["rsyslog"], notify => Service["rsyslog"],
} }
if $syslog_tlsserver {
file { "/var/spool/rsyslog": file { "/var/spool/rsyslog":
ensure => directory, ensure => directory,
mode => "0700", mode => "0700",
@ -171,6 +172,7 @@ class syslog::client::rsyslog {
}, },
before => Service["rsyslog"], before => Service["rsyslog"],
} }
}
service { "rsyslog": service { "rsyslog":
ensure => running, ensure => running,