Wrap imjournal configs in if clause to avoid being created on systems that do not support imjournal

This commit is contained in:
Shaun Rampersad 2016-03-23 12:52:08 +02:00
Родитель 5987a35730
Коммит ed6b4ab8be
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -67,13 +67,19 @@ $Umask <%= scope.lookupvar('rsyslog::umask') %>
$OmitLocalLogging on
<% end -%>
# Settings for imjournal
# Settings for imjournal (If supported)
<% if scope.lookupvar('rsyslog::im_journal_statefile') -%>
$IMJournalStateFile <%=scope.lookupvar('rsyslog::im_journal_statefile') %>
<% end %>
<% if scope.lookupvar('rsyslog::im_journal_ignore_previous_messages') -%>
$ImjournalIgnorePreviousMessages <%=scope.lookupvar('rsyslog::im_journal_ignore_previous_messages') %>
<% end %>
<% if scope.lookupvar('rsyslog::im_journal_ratelimit_interval') -%>
$imjournalRatelimitInterval <%=scope.lookupvar('rsyslog::im_journal_ratelimit_interval') %>
<% end %>
<% if scope.lookupvar('rsyslog::im_journal_ratelimit_burst') -%>
$imjournalRatelimitBurst <%=scope.lookupvar('rsyslog::im_journal_ratelimit_burst') %>
<% end %>
#
# Include all config files in <%= scope.lookupvar('rsyslog::rsyslog_d') %>