Commit 4909721c authored by Brad Beam's avatar Brad Beam Committed by Sean OMeara
Browse files

COOK-4256 Fix default.conf syntax errors for rhel


Signed-off-by: default avatarSean OMeara <someara@opscode.com>
parent 551f5e47
......@@ -78,12 +78,12 @@ when 'rhel'
# format { facility => destination }
default['rsyslog']['default_facility_logs'] = {
'*.info;mail.none;authpriv.none;cron.none' => "#{node['rsyslog']['default_log_dir']}/messages",
'authpriv' => "#{node['rsyslog']['default_log_dir']}/secure",
'authpriv.*' => "#{node['rsyslog']['default_log_dir']}/secure",
'mail.*' => "-#{node['rsyslog']['default_log_dir']}/maillog",
'cron.*' => "#{node['rsyslog']['default_log_dir']}/cron",
'*.emerg' => '*',
'uucp,news.crit' => "#{node['rsyslog']['default_log_dir']}/spooler",
'local7.' => "#{node['rsyslog']['default_log_dir']}/boot.log"
'local7.*' => "#{node['rsyslog']['default_log_dir']}/boot.log"
}
else
# format { facility => destination }
......
@test "rsyslog is up and running" {
pgrep rsyslogd
}
# Ignore comments
# Ignore lines starting with $
# Ignore blank lines
# ensure facility is in proper format - x.x
@test "ensure default.conf is valid" {
awk '$1 !~ /(^(#|\$|:)|^$|(.+\..+)+)/ { exit 1 }' /etc/rsyslog.d/50-default.conf
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment