cleanup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
333e97342a
commit
87681bb5f7
|
@ -9,7 +9,7 @@ matrix_group: "{{ matrix_user }}"
|
||||||
matrix_extra_groups: []
|
matrix_extra_groups: []
|
||||||
|
|
||||||
# Ensure EPEL repo is available at this server
|
# Ensure EPEL repo is available at this server
|
||||||
matrix_dependencies:
|
matrix_packages:
|
||||||
- "@Development tools"
|
- "@Development tools"
|
||||||
- libtiff-devel
|
- libtiff-devel
|
||||||
- libjpeg-devel
|
- libjpeg-devel
|
||||||
|
@ -58,6 +58,8 @@ matrix_logrotate_config:
|
||||||
- delaycompress
|
- delaycompress
|
||||||
- "create 640 {{ matrix_user }} {{ matrix_group }}"
|
- "create 640 {{ matrix_user }} {{ matrix_group }}"
|
||||||
|
|
||||||
|
matrix_restart_policy: "on-failure"
|
||||||
|
|
||||||
matrix_server_url: example.com
|
matrix_server_url: example.com
|
||||||
matrix_client_url: https://matrix.example.com
|
matrix_client_url: https://matrix.example.com
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ matrix_dependencies }}"
|
loop: "{{ matrix_packages }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: True
|
||||||
# {{ ansible_managed }}
|
{{ ansible_managed | comment }}
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Synapse Matrix homeserver
|
Description=Synapse Matrix homeserver
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-abort
|
Restart={{ matrix_restart_policy }}
|
||||||
|
|
||||||
User={{ matrix_user }}
|
User={{ matrix_user }}
|
||||||
Group={{ matrix_group }}
|
Group={{ matrix_group }}
|
||||||
|
|
||||||
WorkingDirectory={{ matrix_base_dir }}
|
WorkingDirectory={{ matrix_base_dir }}
|
||||||
ExecStart={{ matrix_base_dir }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_conf_dir }}/homeserver.yml
|
|
||||||
|
|
||||||
# adjust the cache factor if necessary
|
ExecStart={{ matrix_base_dir }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_conf_dir }}/homeserver.yml
|
||||||
# Environment=SYNAPSE_CACHE_FACTOR=2.0
|
SyslogIdentifier=matrix-synapse
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue