cleanup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-08-12 17:29:37 +02:00
parent 333e97342a
commit 87681bb5f7
3 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ matrix_group: "{{ matrix_user }}"
matrix_extra_groups: []
# Ensure EPEL repo is available at this server
matrix_dependencies:
matrix_packages:
- "@Development tools"
- libtiff-devel
- libjpeg-devel
@ -58,6 +58,8 @@ matrix_logrotate_config:
- delaycompress
- "create 640 {{ matrix_user }} {{ matrix_group }}"
matrix_restart_policy: "on-failure"
matrix_server_url: example.com
matrix_client_url: https://matrix.example.com

View File

@ -19,7 +19,7 @@
package:
name: "{{ item }}"
state: present
loop: "{{ matrix_dependencies }}"
loop: "{{ matrix_packages }}"
become: True
become_user: root

View File

@ -1,20 +1,18 @@
#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
{{ ansible_managed | comment }}
[Unit]
Description=Synapse Matrix homeserver
[Service]
Type=simple
Restart=on-abort
Restart={{ matrix_restart_policy }}
User={{ matrix_user }}
Group={{ matrix_group }}
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
# Environment=SYNAPSE_CACHE_FACTOR=2.0
ExecStart={{ matrix_base_dir }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_conf_dir }}/homeserver.yml
SyslogIdentifier=matrix-synapse
[Install]
WantedBy=multi-user.target