Merge "Add option for enabling rsyslog reopenOnTruncate"

This commit is contained in:
Zuul 2021-06-01 16:32:05 +00:00 committed by Gerrit Code Review
commit d507065dc2

View File

@ -34,6 +34,10 @@ parameters:
default: {}
description: Parameters specific to the role
type: json
RsyslogReopenOnTruncate:
default: false
description: Rsyslog imfile reopenOnTruncate parameter
type: boolean
RsyslogElasticsearchSetting:
default: {}
description: Configuration for rsyslog-elasticsearch plugin
@ -81,8 +85,6 @@ conditions:
use_amqp1:
not:
equals: [{get_param: RsyslogAmqp1Setting}, {}]
outputs:
role_data:
description: Role data for the rsyslog role.
@ -202,6 +204,10 @@ outputs:
dynSearchIndex: "on"
errorfile: '/var/log/rsyslog/omelasticsearch.log'
- {}
- if:
- {get_param: RsyslogReopenOnTruncate}
- tripleo::profile::base::logging::rsyslog::reopen_on_truncate: "on"
- {}
- if:
- use_amqp1
- tripleo::profile::base::logging::rsyslog::amqp1: