Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Use public network for external interface
Browse files Browse the repository at this point in the history
This patch adds possibility for metrics' QDR to listen on public network
for external connections (from CloudForms for example).

Change-Id: I252688c579e76acb8f5fc1fc30fb4f336f905dca
  • Loading branch information
paramite committed Nov 21, 2019
1 parent d2bcf0f commit 553ede1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion deployment/metrics/qdr-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ parameters:
default: 'no'
description: Authenticate the client using SSL/TLS
type: string
MetricsQdrExternalEndpoint:
default: false
description: Whether QDR should listen on external network interface.
type: boolean
InternalTLSCAFile:
default: '/etc/ipa/ca.crt'
type: string
Expand Down Expand Up @@ -160,12 +164,19 @@ outputs:
- {get_param: MetricsQdrLoggingSource}
config_settings:
map_merge:
- tripleo::profile::base::metrics::qdr::listener_addr:
- tripleo::profile::base::metrics::qdr::external_listener_addr:
str_replace:
template:
"%{hiera('$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, PublicNetwork]}
tripleo::profile::base::metrics::qdr::listener_addr:
str_replace:
template:
"%{hiera('$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, MetricsQdrNetwork]}
tripleo::profile::base::metrics::qdr::listen_on_external: {get_param: MetricsQdrExternalEndpoint}
tripleo::profile::base::metrics::qdr::listener_port: {get_param: MetricsQdrPort}
tripleo::profile::base::metrics::qdr::username: {get_param: MetricsQdrUsername}
tripleo::profile::base::metrics::qdr::password: {get_param: MetricsQdrPassword}
Expand Down

0 comments on commit 553ede1

Please sign in to comment.