Skip to content

Commit a2fe728

Browse files
committed
Use cluster hosts' FQDNs in their /etc/hosts file as well as the alias
1 parent 3c5bf50 commit a2fe728

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/manual-kafka-cluster/roles/kafka/tasks/hostname.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
block: |
99
#jinja2: trim_blocks:False
1010
{%- for count in range(cluster_size) %}
11-
{{ kafka_data.server[count].instance.ip_priv1 }} {{ kafka_data.server[count].instance.hostname }}
11+
{{ kafka_data.server[count].instance.ip_priv1 }} {{ kafka_data.server[count].instance.hostname }} {{ instance_prefix }}{{ count+1 }}
1212
{%- endfor %}
1313
1414
- name: configure hostnames
@@ -19,4 +19,4 @@
1919
delegate_to: "{{ item }}"
2020
loop: "{{ groups['kafka'] }}"
2121
loop_control:
22-
index_var: count
22+
index_var: count

0 commit comments

Comments
 (0)