Prefill host configuration for rsyslog-omamqp1
This patch makes connecting to local QDR for rsyslog-omamqp1 possible. Change-Id: I21089d0f4088a2100d2479c2acbad63ca4b04e6d
This commit is contained in:
parent
d12028cc44
commit
91627638d6
|
@ -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:
|
||||
|
@ -85,6 +94,7 @@ conditions:
|
|||
use_amqp1:
|
||||
not:
|
||||
equals: [{get_param: RsyslogAmqp1Setting}, {}]
|
||||
|
||||
outputs:
|
||||
role_data:
|
||||
description: Role data for the rsyslog role.
|
||||
|
@ -214,6 +224,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:
|
||||
- use_tls
|
||||
|
|
Loading…
Reference in New Issue