feat(synapse): add deployment method virtualenv #7

Merged
transcaffeine merged 2 commits from transcaffeine/synapse-venv into main 2024-09-28 20:20:09 +00:00
No description provided.
transcaffeine added 1 commit 2024-09-27 20:20:28 +00:00
transcaffeine force-pushed transcaffeine/synapse-venv from d379c0469d to 609267e099 2024-09-28 09:41:23 +00:00 Compare
transcaffeine force-pushed transcaffeine/synapse-venv from 609267e099 to 50e792cb33 2024-09-28 12:56:43 +00:00 Compare
transcaffeine force-pushed transcaffeine/synapse-venv from 50e792cb33 to 8374b10802 2024-09-28 13:33:43 +00:00 Compare
transcaffeine requested review from leona 2024-09-28 18:54:58 +00:00
leona requested changes 2024-09-28 19:16:05 +00:00
Dismissed
@ -0,0 +1,53 @@
---
synapse_systemd_service_name: "synapse.service"
Member

This should either be

synapse_systemd_name
synapse_systemd_enabled

or all variables should be prefixed with synapse_systemd_service

This should either be ``` synapse_systemd_name ``` ``` synapse_systemd_enabled ``` or all variables should be prefixed with `synapse_systemd_service`
Author
Owner
see https://git.finally.coffee/finallycoffee/matrix/compare/8374b1080272601f15098fe84827ec12f6a7e0f1..015feaf5a6cc06f93a3e68d951135c950a88efa0#diff-e336851dbe45c373ac4021e3f5bd8a0891381371
transcaffeine marked this conversation as resolved
@ -0,0 +32,4 @@
ansible.builtin.template:
src: "synapse.service.j2"
dest: "{{ synapse_systemd_service_file }}"
notify:
Member

When synapse_state == 'absent' the synapse.service file should be deleted

When `synapse_state == 'absent'` the `synapse.service` file should be deleted
Author
Owner
see https://git.finally.coffee/finallycoffee/matrix/compare/8374b1080272601f15098fe84827ec12f6a7e0f1..015feaf5a6cc06f93a3e68d951135c950a88efa0#diff-e4c8e7a68b24632db20258e8ef7c6a9f397ddc8e Line 46 (new)
transcaffeine marked this conversation as resolved
@ -0,0 +37,4 @@
- meta: flush_handlers
- name: Ensure systemd service is {{ synapse_state }}
Member

Check whether this path/task is required when synapse_state == 'absent'. When this is true the systemd service file will be removed and the systemd daemon will be reloaded. This might lead to systemd auto-stop the unit.

This could reduce complexity

Check whether this path/task is required when `synapse_state == 'absent'`. When this is true the systemd service file will be removed and the systemd daemon will be reloaded. This might lead to systemd auto-stop the unit. This could reduce complexity
transcaffeine marked this conversation as resolved
@ -0,0 +1,44 @@
[Unit]
Description="{{ synapse_systemd_unit_description }}"
Member
Description={{ synapse_systemd_unit_description }}
``` Description={{ synapse_systemd_unit_description }} ```
Author
Owner
see https://git.finally.coffee/finallycoffee/matrix/compare/8374b1080272601f15098fe84827ec12f6a7e0f1..015feaf5a6cc06f93a3e68d951135c950a88efa0#diff-d5a321215b00956942ebd7ef6b229a6e305353e2
transcaffeine marked this conversation as resolved
transcaffeine force-pushed transcaffeine/synapse-venv from 8374b10802 to 015feaf5a6 2024-09-28 19:55:12 +00:00 Compare
transcaffeine requested review from leona 2024-09-28 19:59:04 +00:00
leona reviewed 2024-09-28 20:10:18 +00:00
@ -17,0 +23,4 @@
when:
- synapse_deployment_method == 'virtualenv'
- ansible_facts['service_mgr'] == systemd
- synapse_state == 'started'
Member

This should probably be

synapse_systemd_state == 'started'
This should probably be ``` synapse_systemd_state == 'started' ```
Author
Owner
see https://git.finally.coffee/finallycoffee/matrix/compare/015feaf5a6cc06f93a3e68d951135c950a88efa0..7d7693a2c721056aa728d24a537bfa9441f22b28
transcaffeine marked this conversation as resolved
transcaffeine force-pushed transcaffeine/synapse-venv from 015feaf5a6 to 7d7693a2c7 2024-09-28 20:13:42 +00:00 Compare
leona approved these changes 2024-09-28 20:14:50 +00:00
transcaffeine merged commit 7d7693a2c7 into main 2024-09-28 20:20:09 +00:00
transcaffeine deleted branch transcaffeine/synapse-venv 2024-09-28 20:20:09 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: finallycoffee/matrix#7
No description provided.