Cleanup synchrotron balancers
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
synchrotron_type: init
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
synchrotron_type: balancer
|
|
||||||
Reference in New Issue
Block a user