Add support for additional log sources for rsyslog
This change introduces the new RsyslogExtraLoggingSources parameter which allows users to transfer additional log files using rsyslog. Change-Id: Ic6339945690339b6fb50dbfbb21026195d6a5421
This commit is contained in:
parent
a170fc4c75
commit
a1b967fafe
@ -58,6 +58,12 @@ parameters:
|
||||
default: ''
|
||||
description: Contains content of the private key corresponding to the cert RsyslogElasticsearchTlsClientCert.
|
||||
type: string
|
||||
RsyslogExtraLoggingSource:
|
||||
type: json
|
||||
default: []
|
||||
description: Additional source log file(s) loaded by the rsyslog service
|
||||
tags:
|
||||
- role_specific
|
||||
CloudName:
|
||||
default: overcloud.localdomain
|
||||
description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
|
||||
@ -84,6 +90,8 @@ resources:
|
||||
ContainersCommon:
|
||||
type: ../containers-common.yaml
|
||||
|
||||
# Merging role-specific parameters (RoleParameters) with the default parameters.
|
||||
# RoleParameters will have the precedence over the default parameters.
|
||||
RoleParametersValue:
|
||||
type: OS::Heat::Value
|
||||
properties:
|
||||
@ -93,10 +101,13 @@ resources:
|
||||
- map_replace:
|
||||
- ContainerRsyslogImage: ContainerRsyslogImage
|
||||
ContainerRsyslogConfigImage: ContainerRsyslogConfigImage
|
||||
extra_logging_sources: RsyslogExtraLoggingSources
|
||||
- values: {get_param: [RoleParameters]}
|
||||
- values:
|
||||
ContainerRsyslogImage: {get_param: ContainerRsyslogImage}
|
||||
ContainerRsyslogConfigImage: {get_param: ContainerRsyslogConfigImage}
|
||||
RsyslogExtraLoggingSource: {get_param: RsyslogExtraLoggingSource}
|
||||
|
||||
conditions:
|
||||
use_tls:
|
||||
not:
|
||||
@ -263,6 +274,8 @@ outputs:
|
||||
- tripleo::profile::base::logging::rsyslog::elasticsearch_tls_ca_cert: {get_param: RsyslogElasticsearchTlsCACert}
|
||||
tripleo::profile::base::logging::rsyslog::elasticsearch_tls_client_cert: {get_param: RsyslogElasticsearchTlsClientCert}
|
||||
tripleo::profile::base::logging::rsyslog::elasticsearch_tls_client_key: {get_param: RsyslogElasticsearchTlsClientKey}
|
||||
service_config_settings:
|
||||
tripleo_logging_sources_rsyslog: {get_attr: [RoleParametersValue, value, extra_logging_sources]}
|
||||
# BEGIN DOCKER SETTINGS
|
||||
puppet_config:
|
||||
config_volume: rsyslog
|
||||
|
Loading…
Reference in New Issue
Block a user