diff --git a/galaxy.yml b/galaxy.yml index 6b38b8f..d4e0c33 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,12 +1,13 @@ --- namespace: middleware_automation name: amq_streams -version: "0.0.7" +version: "0.0.8" readme: README.md authors: - Romain Pelisse - Guido Grazioli - Roman Martin + - Guilherme Baufaker RĂªgo description: Install and configure Red Hat AMQ Streams (kafka) deployments license_file: "LICENSE" tags: diff --git a/roles/amq_streams_zookeeper/templates/zookeeper.properties.j2 b/roles/amq_streams_zookeeper/templates/zookeeper.properties.j2 index 0abb42f..ccad8eb 100644 --- a/roles/amq_streams_zookeeper/templates/zookeeper.properties.j2 +++ b/roles/amq_streams_zookeeper/templates/zookeeper.properties.j2 @@ -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 %} @@ -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 %}