Allow setting ip_address for execution nodes

This commit is contained in:
Seth Foster
2023-07-27 22:25:14 -04:00
committed by Seth Foster
parent 7169c75b1a
commit 3bd25c682e
4 changed files with 23 additions and 4 deletions

View File

@@ -704,7 +704,8 @@ def generate_config_data():
receptor_config = list(RECEPTOR_CONFIG_STARTER)
for instance in instances:
peer = {'tcp-peer': {'address': f'{instance.hostname}:{instance.listener_port}', 'tls': 'tlsclient'}}
host_or_ip = instance.ip_address or instance.hostname
peer = {'tcp-peer': {'address': f'{host_or_ip}:{instance.listener_port}', 'tls': 'tlsclient'}}
receptor_config.append(peer)
should_update = should_update_config(instances)
return receptor_config, should_update