syslog: Fix syslog::standalone for OpenBSD.
This commit is contained in:
parent
3f64b852f8
commit
b90e00902d
1 changed files with 11 additions and 2 deletions
|
@ -262,6 +262,15 @@ class syslog::common::standalone inherits syslog::common {
|
||||||
require => File["/srv/log"],
|
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"] {
|
File["/var/log/all.log"] {
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => "/srv/log/all.log",
|
target => "/srv/log/all.log",
|
||||||
|
@ -340,7 +349,7 @@ class syslog::standalone::syslogd inherits syslog::client::syslogd {
|
||||||
File["/etc/syslog.conf"] {
|
File["/etc/syslog.conf"] {
|
||||||
content => template("syslog/syslog.conf.server.erb",
|
content => template("syslog/syslog.conf.server.erb",
|
||||||
"syslog/syslog.conf.$operatingsystem.erb"),
|
"syslog/syslog.conf.$operatingsystem.erb"),
|
||||||
require => [ File["/srv/log"],
|
require => [ File["/srv/log/all.log"],
|
||||||
File["/var/log/all.log"], ],
|
File["/var/log/all.log"], ],
|
||||||
}
|
}
|
||||||
Service["syslogd"] {
|
Service["syslogd"] {
|
||||||
|
@ -358,7 +367,7 @@ class syslog::standalone::rsyslog inherits syslog::client::rsyslog {
|
||||||
content => template("syslog/rsyslog.conf.erb",
|
content => template("syslog/rsyslog.conf.erb",
|
||||||
"syslog/syslog.conf.server.erb",
|
"syslog/syslog.conf.server.erb",
|
||||||
"syslog/syslog.conf.$operatingsystem.erb"),
|
"syslog/syslog.conf.$operatingsystem.erb"),
|
||||||
require => [ File["/srv/log"],
|
require => [ File["/srv/log/all.log"],
|
||||||
File["/var/log/all.log"], ],
|
File["/var/log/all.log"], ],
|
||||||
}
|
}
|
||||||
Service["rsyslog"] {
|
Service["rsyslog"] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue