syslog: Fix syslog::standalone for OpenBSD.

This commit is contained in:
Timo Makinen 2015-11-20 16:28:43 +02:00
parent 3f64b852f8
commit b90e00902d

View file

@ -262,6 +262,15 @@ class syslog::common::standalone inherits syslog::common {
require => File["/srv/log"],
}
file { "/srv/log/all.log":
ensure => present,
mode => "0640",
owner => "root",
group => $group,
seltype => "var_log_t",
require => File["/srv/log"],
}
File["/var/log/all.log"] {
ensure => link,
target => "/srv/log/all.log",
@ -340,7 +349,7 @@ class syslog::standalone::syslogd inherits syslog::client::syslogd {
File["/etc/syslog.conf"] {
content => template("syslog/syslog.conf.server.erb",
"syslog/syslog.conf.$operatingsystem.erb"),
require => [ File["/srv/log"],
require => [ File["/srv/log/all.log"],
File["/var/log/all.log"], ],
}
Service["syslogd"] {
@ -358,7 +367,7 @@ class syslog::standalone::rsyslog inherits syslog::client::rsyslog {
content => template("syslog/rsyslog.conf.erb",
"syslog/syslog.conf.server.erb",
"syslog/syslog.conf.$operatingsystem.erb"),
require => [ File["/srv/log"],
require => [ File["/srv/log/all.log"],
File["/var/log/all.log"], ],
}
Service["rsyslog"] {