Commit 2e0a3766 authored by Chris Malek's avatar Chris Malek
Browse files

treat Amazon Linux like RH6, not RH7

parent 386a413d
......@@ -70,8 +70,8 @@ when 'rhel', 'fedora'
'uucp,news.crit' => "#{node['rsyslog']['default_log_dir']}/spooler",
'local7.*' => "#{node['rsyslog']['default_log_dir']}/boot.log"
}
# RHEL >= 7 and Fedora >= 19 use journald in systemd
if node['platform_version'].to_i == 7 || node['platform_version'].to_i >= 19
# RHEL >= 7 and Fedora >= 19 use journald in systemd. Amazon Linux doesn't.
if node['platform'] != "amazon" && (node['platform_version'].to_i == 7 || node['platform_version'].to_i >= 19)
default['rsyslog']['modules'] = %w(imuxsock imjournal)
default['rsyslog']['additional_directives'] = { 'OmitLocalLogging' => 'on', 'IMJournalStateFile' => 'imjournal.state' }
end
......
Markdown is supported
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