Skip to content

Commit 73520ae

Browse files
committed
Use rdns instead of IP for ssh
Use the rdns name for the linode rather than the IP when doing ssh since this allows corporate DNS servers to reroute traffic through their own proxies.
1 parent 739cbac commit 73520ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/manual-kafka-cluster/provision.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
#jinja2: trim_blocks:False
6565
[kafka]
6666
{%- for count in range(cluster_size) %}
67-
{{ info.results[count].instance.ipv4[0] }} {% if count < controller_count %}role='controller and broker'{%else%}role='broker only'{%endif%}
67+
{{ info.results[count].networking.ipv4.public[0].rdns }} {% if count < controller_count %}role='controller and broker'{%else%}role='broker only'{%endif%}
6868
{%- endfor %}
6969
7070
- name: wait for port 22 to become open
7171
wait_for:
7272
port: 22
73-
host: '{{ item.instance.ipv4[0] }}'
73+
host: '{{ item.networking.ipv4.public[0].rdns }}'
7474
search_regex: OpenSSH
7575
delay: 10
7676
connection: local

0 commit comments

Comments
 (0)