Skip to content
Snippets Groups Projects
Commit 49a59bc4 authored by Bill MacAllister's avatar Bill MacAllister
Browse files

syslog::rsyslog: Correct syntax error

parent 148209ac
No related branches found
No related tags found
No related merge requests found
...@@ -9,24 +9,27 @@ define base::syslog::config::rsyslog( ...@@ -9,24 +9,27 @@ define base::syslog::config::rsyslog(
$replace = true, $replace = true,
$use_syslog_conf = true, $use_syslog_conf = true,
) { ) {
# Install the last chance syslog handling. This is either in
# /etc/syslog.conf (depreciated) or in a rsyslog fragment.
if $use_syslog_conf { if $use_syslog_conf {
base::syslog::config::syslog {'/etc/syslog.conf': base::syslog::config::syslog {'/etc/syslog.conf':
ensure => present, ensure => present,
} }
} else { } else {
file { file {
'/etc/syslog.conf': '/etc/syslog.conf':
ensure => absent; ensure => absent;
'/etc/rsyslog.d/90-local.conf': '/etc/rsyslog.d/90-local.conf':
ensure => present, ensure => present,
source => 'puppet:///modules/base/syslog/etc/rsyslog.d/90-local.conf', source => 'puppet:///modules/base/syslog/etc/rsyslog.d/90-local.conf',
owner => $owner, owner => $owner,
group => $group, group => $group,
mode => $mode; mode => $mode;
}
} }
} }
# Template for the base rsyslog configuration.
if $source { if $source {
$template = undef $template = undef
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment