Removed /var/spool/rsyslog directory creation if TLS is not used.
This commit is contained in:
parent
4c306cbf81
commit
d9ed7a8cae
1 changed files with 11 additions and 9 deletions
|
@ -161,15 +161,17 @@ class syslog::client::rsyslog {
|
||||||
notify => Service["rsyslog"],
|
notify => Service["rsyslog"],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/var/spool/rsyslog":
|
if $syslog_tlsserver {
|
||||||
ensure => directory,
|
file { "/var/spool/rsyslog":
|
||||||
mode => "0700",
|
ensure => directory,
|
||||||
owner => "root",
|
mode => "0700",
|
||||||
group => $::operatingsystem ? {
|
owner => "root",
|
||||||
"openbsd" => "wheel",
|
group => $::operatingsystem ? {
|
||||||
default => "root",
|
"openbsd" => "wheel",
|
||||||
},
|
default => "root",
|
||||||
before => Service["rsyslog"],
|
},
|
||||||
|
before => Service["rsyslog"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
service { "rsyslog":
|
service { "rsyslog":
|
||||||
|
|
Loading…
Add table
Reference in a new issue