Changes to include broker connector configuration.

Changes were done to include multiple ssl_profiles
which can be used to by both listeners and connectors.
Also autolink configuration is added to enable
external broker connection.

Change-Id: Ib3090c01bfdcb60168dd1c6db23c520a103c051e
This commit is contained in:
Nagasai Vinaykumar Kapalavai 2018-11-12 17:18:37 +00:00
parent c2b636fb01
commit b6228764a1
2 changed files with 30 additions and 1 deletions

View File

@ -8,6 +8,10 @@
# (optional) An array of hashes containing connector configuration
# Defaults to []
#
# [*ssl_profiles*]
# (optional) An array of hashes containing the ssl profiles
# Defaults to []
#
# [*ensure_package*]
# (optional) The state of the qdr packages
# Defaults to 'installed'
@ -81,6 +85,10 @@
# (optional) Path to file containing trusted certificates
# Defaults to 'UNSET'
#
# [*autolink_addresses*]
# (optional) An array of hashes containing the autoLink addresses
# Defaults to []
#
# [*extra_addresses*]
# (optional) An array of hashes containing extra address configuration
# Defaults to []
@ -143,6 +151,7 @@
#
class qdr(
$connectors = [],
$ssl_profiles = [],
$ensure_package = 'installed',
$ensure_service = 'running',
$enable_service = true,
@ -161,6 +170,7 @@ class qdr(
$listener_ssl_pw_file = undef,
$listener_ssl_password = undef,
$listener_trusted_certs = 'UNSET',
$autolink_addresses = [],
$extra_addresses = [],
$log_enable = 'debug+',
$log_module = 'DEFAULT',

View File

@ -38,6 +38,15 @@ sslProfile {
}
<%- end -%>
<%- @ssl_profiles.each do |profile| -%>
sslProfile{
<%- profile.each do |k,v| -%>
<%= k %>: <%= v %>
<%- end -%>
}
<%- end -%>
listener {
host: <%= @listener_addr %>
port: <%= @listener_port %>
@ -56,6 +65,7 @@ listener {
}
<%- end -%>
<%- @connectors.each do |connector| -%>
connector {
<%- connector.each do |k,v| -%>
@ -64,6 +74,7 @@ connector {
}
<%- end -%>
address {
prefix: unicast
distribution: closest
@ -88,10 +99,18 @@ address {
<%- end -%>
<%- @autolink_addresses.each do |autoLink| -%>
autoLink {
<%- autoLink.each do |k,v| -%>
<%=k %>: <%= v %>
<%- end -%>
}
<%- end -%>
log {
module: <%= @log_module %>
enable: <%= @log_enable %>
timestamp: true
output: <%= @log_output %>
}