Skip to content

Commit

Permalink
Merge pull request #321 from ripienaar/320
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex authored Sep 20, 2022
2 parents c1ee12f + 3484094 commit 72deebd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ choria::config_group: "root"
choria::broker::network_broker: true
choria::broker::federation_broker: false
choria::broker::federation_cluster: "%{::environment}"
choria::broker::cluster_name: ~
choria::broker::manage_service: true
choria::broker::listen_address: "::"
choria::broker::stats_listen_address: "localhost"
Expand Down
2 changes: 2 additions & 0 deletions manifests/broker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
# @param system_password Password to use for access to the System account
# @param provisioner_password The Password the Choria Provisioner needs to present
# @param provisioning_signer_source A Puppet source where the public used to sign provisioning.jwt is found
# @param $cluster_name Configures a unique location specific name, use when establishing leafnodes to a central network
class choria::broker (
Boolean $network_broker,
Boolean $federation_broker,
Optional[String] $federation_cluster,
Optional[String] $cluster_name,
Boolean $manage_service,
Stdlib::Host $listen_address,
Stdlib::Host $stats_listen_address,
Expand Down
6 changes: 6 additions & 0 deletions templates/broker.cfg.epp
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,9 @@ plugin.choria.network.leafnode_remote.<%= $leaf %>.tls.disable = true
<% } -%>
<% } -%>
<% } -%>

<% if $choria::broker::cluster_name { -%>
# A unique name for this network, if connecting to a remote cluster as a
# leafnode this name should uniquely identify this site
plugin.choria.network.gateway_name = <%= $choria::broker::cluster_name %>
<% } -%>

0 comments on commit 72deebd

Please sign in to comment.