Merge "Prefill host configuration for rsyslog-omamqp1" into stable/wallaby
This commit is contained in:
commit
7bb3d84d84
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue