add requirements file,hosts.ini and README
This commit is contained in:
parent
b8296f4bee
commit
fbccf37df6
41 changed files with 685 additions and 91 deletions
10
roles/synapse/templates/logrotate.j2
Normal file
10
roles/synapse/templates/logrotate.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{ ansible_managed | comment }}
|
||||
/var/log/matrix_synapse/matrix_synapse.log {
|
||||
daily
|
||||
rotate {{ matrix_synapse_log_days_keep }}
|
||||
compress
|
||||
shred
|
||||
postrotate
|
||||
/usr/bin/pkill -HUP rsyslogd
|
||||
endscript
|
||||
}
|
||||
16
roles/synapse/templates/matrix-synapse.service.j2
Normal file
16
roles/synapse/templates/matrix-synapse.service.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description="Matrix Synapse Server (synapse)"
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory={{ matrix_synapse_base_path }}
|
||||
ExecStart={{ matrix_synapse_base_path }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_synapse_base_path }}/homeserver.yaml
|
||||
ExecStop={{ matrix_synapse_base_path }}/env/bin/synctl stop {{ matrix_synapse_base_path }}/homeserver.yaml
|
||||
User=synapse
|
||||
Group=synapse
|
||||
Restart=always
|
||||
StandardOutput=syslog
|
||||
SyslogIdentifier=matrix_synapse
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
2
roles/synapse/templates/syslog-synapse.conf.j2
Normal file
2
roles/synapse/templates/syslog-synapse.conf.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if $programname == 'matrix_synapse' then {{ matrix_synapse_log_dir }}/matrix_synapse.log
|
||||
if $programname == 'matrix_synapse' then ~
|
||||
Loading…
Add table
Add a link
Reference in a new issue