Merge "Prefill host configuration for rsyslog-omamqp1" into stable/wallaby

This commit is contained in:
Zuul 2021-09-18 06:17:15 +00:00 committed by Gerrit Code Review
commit 7bb3d84d84
1 changed files with 25 additions and 0 deletions

View File

@ -66,6 +66,15 @@ parameters:
default: {}
description: Configuration for rsyslog-omamqp1 plugin
type: json
RsyslogAmqp1Local:
default: true
description: Set to false to disable prefilling host connection value to local QDR in RsyslogAmqp1Setting.
type: boolean
MetricsQdrPort:
default: 5666
description: Service name or port number on which the qdrouterd will accept
connections.
type: number
resources:
ContainersCommon:
@ -211,6 +220,22 @@ outputs:
map_merge:
- {get_param: RsyslogAmqp1Setting}
- template: rsyslog-record
- if:
- {get_param: RsyslogAmqp1Local}
- host:
str_replace:
template:
"%{hiera('$NETWORK')}:$PORT"
params:
$PORT:
get_param: MetricsQdrPort
$NETWORK:
get_param:
- ServiceNetMap
- str_replace:
template: "ROLENAMEMetricsQdrNetwork"
params:
ROLENAME: {get_param: RoleName}
- {}
- if:
- {get_param: RsyslogReopenOnTruncate}