From 0b52acfa72b6ac6aa6e006ea00459ae7ee112723 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Fri, 2 Jan 2026 13:29:48 +0000 Subject: Remove turn_server definition from inventory My current deployment of non-transport servers looks like this: xmpp-prod host: chat.fennell.dev chat.koyo.haus prod turn server xmpp-nonprod host: chat.continuous.nonprod.fennell.dev chat.continuous.nonprod.koyo.haus nonprod turn server So, for each environment, there are two XMPP servers and only a single turn server. Therefore, within each environment, all XMPP servers need to point to the same turn server. I decided arbitrarily that that server would be defined for the koyo.haus domain. I used to have a variable defined for each host to manually point the turn server to that domain. However, we can prevent some duplication of information in the playbook if we just define the turn_domain (i.e. koyo.haus) in the inventory, and then derive the full path for that environment from that. --- playbook.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'playbook.yaml') diff --git a/playbook.yaml b/playbook.yaml index c0fc761..2a85ba1 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -548,4 +548,6 @@ # "continuous.nonprod". ds_subname: "{{ virtual_host | regex_replace('.' + domain_with_ds, '') }}" + turn_server: "chat.{{ env_prefix }}{{ turn_domain }}" + is_transport_server: "{{ transports | default([]) | length > 0 }}" -- cgit v1.2.3