File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,7 @@ The following parameters are available in the `activemq::instance` defined type:
407
407
* [ ` address_settings ` ] ( #-activemq--instance--address_settings )
408
408
* [ ` addresses ` ] ( #-activemq--instance--addresses )
409
409
* [ ` allow_failback ` ] ( #-activemq--instance--allow_failback )
410
+ * [ ` allow_direct_connections_only ` ] ( #-activemq--instance--allow_direct_connections_only )
410
411
* [ ` bind ` ] ( #-activemq--instance--bind )
411
412
* [ ` broadcast_groups ` ] ( #-activemq--instance--broadcast_groups )
412
413
* [ ` broker_plugins ` ] ( #-activemq--instance--broker_plugins )
@@ -478,6 +479,16 @@ Data type: `Boolean`
478
479
479
480
Should stop backup on live restart.
480
481
482
+ ##### <a name =" -activemq--instance--allow_direct_connections_only " ></a >` allow_direct_connections_only `
483
+
484
+ Data type: ` Optional[Boolean] `
485
+
486
+ When using ` static ` for [ ` server_discovery ` ] ( #-activemq--server_discovery )
487
+ only make connections to the defined connectors and not any other
488
+ broker in the cluser.
489
+
490
+ Default value: ` true `
491
+
481
492
##### <a name =" -activemq--instance--bind " ></a >` bind `
482
493
483
494
Data type: ` String `
Original file line number Diff line number Diff line change 20
20
# @param allow_failback
21
21
# Should stop backup on live restart.
22
22
#
23
+ # @param allow_direct_connections_only
24
+ # When using static server discovery only make connections to the
25
+ # defined connectors and not any other broker in the cluser.
26
+ #
23
27
# @param bind
24
28
# Configure which IP address to listen on. Should be either a FQDN
25
29
# or an IP address.
167
171
String $java_xms = $activemq::java_xms,
168
172
String $java_xmx = $activemq::java_xmx,
169
173
# Optional parameters
174
+ Optional[Boolean] $allow_direct_connections_only = true ,
170
175
Optional[Integer] $global_max_size_mb = undef ,
171
176
Optional[String] $group = undef ,
172
177
Optional[Boolean] $service_enable = undef ,
379
384
' address_settings' => $address_settings ,
380
385
' addresses' => $addresses ,
381
386
' allow_failback' => $allow_failback ,
387
+ ' allow_direct_connections_only' => $allow_direct_connections_only ,
382
388
' bind' => $bind ,
383
389
' broadcast_groups' => $broadcast_groups ,
384
390
' broker_plugins' => $_broker_plugins,
Original file line number Diff line number Diff line change @@ -148,9 +148,12 @@ under the License.
148
148
< message- load- balancing>< %= $message_load_balancing % >< / message- load- balancing>
149
149
< max- hops>< %= $max_hops % >< / max- hops>
150
150
< % if $activemq:: server_discovery == ' static' { -% >
151
- < static - connectors allow- direct- connections- only= " true " >
151
+ < static - connectors allow- direct- connections- only= " <%= $allow_direct_connections_only %> " >
152
152
< % $connectors. each | $key, $value| { -% >
153
+ < % # # Do not add the connector that matches the name of this instance. -% >
154
+ < % if ($key != " artemis-${name}" ) { -% >
153
155
< connector- ref>< %= $key % >< / connector- ref>
156
+ < % } -% >
154
157
< % } -% >
155
158
< / static - connectors>
156
159
< % } -% >
You can’t perform that action at this time.
0 commit comments