Cleanup synchrotron balancers

This commit is contained in:
uumas
2023-04-25 20:30:59 +03:00
parent 2be85606c5
commit 46dc53580e
5 changed files with 3 additions and 14 deletions

View File

@@ -27,4 +27,6 @@
daemon_reload: true daemon_reload: true
name: matrix-synchrotron@{{ item }}.service name: matrix-synchrotron@{{ item }}.service
enabled: false enabled: false
loop: "{{ synapse_synchrotrons }}" loop:
- balancer
- init

View File

@@ -33,8 +33,3 @@
- name: Include worker instance tasks for {{ worker_type }} - name: Include worker instance tasks for {{ worker_type }}
ansible.builtin.include_tasks: worker_instance.yml ansible.builtin.include_tasks: worker_instance.yml
when: worker_ports|length == 0 when: worker_ports|length == 0
- name: Append synchrotron variable
ansible.builtin.set_fact:
synapse_synchrotrons: "{{ synapse_synchrotrons + [synchrotron_type] }}"
when: synchrotron_type is defined and synchrotron_type not in synapse_synchrotrons

View File

@@ -25,7 +25,6 @@
- name: Initialize synapse worker vars - name: Initialize synapse worker vars
ansible.builtin.set_fact: ansible.builtin.set_fact:
synapse_worker_services: [] synapse_worker_services: []
synapse_synchrotrons: []
- name: Configure workers - name: Configure workers
ansible.builtin.include_tasks: worker_type.yml ansible.builtin.include_tasks: worker_type.yml
@@ -45,4 +44,3 @@
- name: Ensure synchrotron balancer removed (legacy) - name: Ensure synchrotron balancer removed (legacy)
ansible.builtin.include_tasks: matrix-synchrotrons.yml ansible.builtin.include_tasks: matrix-synchrotrons.yml
when: synapse_synchrotrons | length != 0

View File

@@ -1,3 +0,0 @@
---
synchrotron_type: init

View File

@@ -1,3 +0,0 @@
---
synchrotron_type: balancer