From dbc5ea46e72bdba431591c20e35d408a1dda1635 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Mon, 22 Jan 2024 16:23:29 -0500 Subject: [PATCH] Support old-style host plus port as well as new-style address strings --- roles/setup/templates/receptor.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/setup/templates/receptor.conf.j2 b/roles/setup/templates/receptor.conf.j2 index 6a0a861..4c7320c 100644 --- a/roles/setup/templates/receptor.conf.j2 +++ b/roles/setup/templates/receptor.conf.j2 @@ -54,7 +54,11 @@ {% if receptor_peers | default([]) %} {% for peer in receptor_peers %} - {{ peer['protocol'] }}-peer: +{% if 'port' in peer %} address: {{ peer['address'] | default(peer['host']) }}:{{ peer['port'] }} +{% else %} + address: {{ peer['address'] }} +{% endif %} redial: true {% if receptor_tls %} tls: tls_client