diff --git a/deployment/logging/rsyslog-container-puppet.yaml b/deployment/logging/rsyslog-container-puppet.yaml index f3c41e01c8..5f6a3f43e2 100644 --- a/deployment/logging/rsyslog-container-puppet.yaml +++ b/deployment/logging/rsyslog-container-puppet.yaml @@ -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: