Skip to content

Commit

Permalink
Fixing the amq_streams_zookeeper_id for zookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Baufaker Rêgo authored and rpelisse committed Nov 21, 2023
1 parent 559c4e5 commit a7380ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
namespace: middleware_automation
name: amq_streams
version: "0.0.7"
version: "0.0.8"

Check warning on line 4 in galaxy.yml

View workflow job for this annotation

GitHub Actions / ci / linter (3.11, 2.15)

galaxy[version-incorrect]

collection version should be greater than or equal to 1.0.0

Check warning on line 4 in galaxy.yml

View workflow job for this annotation

GitHub Actions / ci / linter (3.11, 2.15)

galaxy[version-incorrect]

collection version should be greater than or equal to 1.0.0
readme: README.md
authors:
- Romain Pelisse <[email protected]>
- Guido Grazioli <[email protected]>
- Roman Martin <[email protected]>
- Guilherme Baufaker Rêgo <[email protected]>
description: Install and configure Red Hat AMQ Streams (kafka) deployments
license_file: "LICENSE"
tags:
Expand Down
12 changes: 10 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,11 @@ 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.{{ zknode.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 }}
server.{% if hostvars[zknode]['amq_streams_zookeeper_zookeeper_id'] is defined -%}
{{ hostvars[zknode]['amq_streams_zookeeper_zookeeper_id'] }}
{%- else -%}
{{ loop.index }}
{%- endif %}={{ 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 +64,10 @@ quorum.cnxn.threads.size=20
# Client-to-Server Authentication
requireClientAuthScheme=sasl
{% for zknode in amq_streams_zookeeper_inventory_group %}
authProvider.{{ zknode.amq_streams_zookeeper_zookeeper_id | default(loop.index)}}=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
authProvider.{% if hostvars[zknode]['amq_streams_zookeeper_zookeeper_id'] is defined -%}
{{ hostvars[zknode]['amq_streams_zookeeper_zookeeper_id'] }}
{%- else -%}
{{ loop.index }}
{%- endif %}=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
{% endfor %}
{% endif %}

0 comments on commit a7380ba

Please sign in to comment.