Skip to content

Commit

Permalink
Adds custom amq_streams_zookeeper_zookeeper_id too zookeeper.properti…
Browse files Browse the repository at this point in the history
…es.j2
  • Loading branch information
Guilherme Baufaker Rêgo committed Oct 13, 2023
1 parent 4dd4f17 commit 20d95fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/amq_streams_zookeeper/templates/zookeeper.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ syncLimit={{ amq_streams_zookeeper_sync_limit }}

# List of servers which should be members of the Zookeeper cluster.
{% for zknode in amq_streams_zookeeper_inventory_group %}
server.{{ loop.index }}={{ zknode }}:{{ amq_streams_zookeeper_cluster_port_start }}:{{ amq_streams_zookeeper_cluster_port_end }}:participant;{{ zknode }}:{{ amq_streams_zookeeper_port }}
server.{{ amq_streams_zookeeper_zookeeper_id|default(loop.index) }}={{ zknode }}:{{ amq_streams_zookeeper_cluster_port_start }}:{{ amq_streams_zookeeper_cluster_port_end }}:participant;{{ zknode }}:{{ amq_streams_zookeeper_port }}
{% endfor %}

{% if amq_streams_zookeeper_auth_enabled %}
Expand All @@ -60,6 +60,6 @@ quorum.cnxn.threads.size=20
# Client-to-Server Authentication
requireClientAuthScheme=sasl
{% for zknode in amq_streams_zookeeper_inventory_group %}
authProvider.{{ loop.index }}=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
authProvider.{{ amq_streams_zookeeper_zookeeper_id|default(loop.index) }}=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
{% endfor %}
{% endif %}

0 comments on commit 20d95fa

Please sign in to comment.