This commit is contained in:
parent
31a60c08b4
commit
78ed0ff135
@ -18,7 +18,6 @@ matrix_packages:
|
|||||||
- tcl-devel
|
- tcl-devel
|
||||||
- tk-devel
|
- tk-devel
|
||||||
- redhat-rpm-config
|
- redhat-rpm-config
|
||||||
- python-virtualenv
|
|
||||||
- python36-devel
|
- python36-devel
|
||||||
- libffi-devel
|
- libffi-devel
|
||||||
- openssl-devel
|
- openssl-devel
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
- name: Upgrade python dependencies
|
- name: Upgrade python dependencies
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
virtualenv: "{{ matrix_base_dir }}/env"
|
virtualenv: "{{ matrix_base_dir }}/venv"
|
||||||
virtualenv_command: /usr/bin/python3 -m venv
|
virtualenv_command: /usr/bin/python3 -m venv
|
||||||
extra_args: --upgrade
|
extra_args: --upgrade
|
||||||
loop:
|
loop:
|
||||||
@ -26,23 +26,23 @@
|
|||||||
- setuptools
|
- setuptools
|
||||||
- "psycopg2~=2.7.0"
|
- "psycopg2~=2.7.0"
|
||||||
|
|
||||||
- name: Install with pip and virtualenv
|
- name: Install Synapse in virtualenv
|
||||||
pip:
|
pip:
|
||||||
name: matrix-synapse[all]
|
name: matrix-synapse[all]
|
||||||
version: "{{ matrix_version }}"
|
version: "{{ matrix_version }}"
|
||||||
virtualenv: "{{ matrix_base_dir }}/env"
|
virtualenv: "{{ matrix_base_dir }}/venv"
|
||||||
virtualenv_command: /usr/bin/python3 -m venv
|
virtualenv_command: /usr/bin/python3 -m venv
|
||||||
notify: __matrix_restart
|
notify: __matrix_restart
|
||||||
|
|
||||||
- name: Install ldap3 auth provider
|
- name: Install ldap3 auth provider
|
||||||
pip:
|
pip:
|
||||||
name: "matrix-synapse-ldap3"
|
name: "matrix-synapse-ldap3"
|
||||||
virtualenv: "{{ matrix_base_dir }}/env"
|
virtualenv: "{{ matrix_base_dir }}/venv"
|
||||||
virtualenv_command: /usr/bin/python3 -m venv
|
virtualenv_command: /usr/bin/python3 -m venv
|
||||||
when: matrix_ldap_auth_enabled | bool
|
when: matrix_ldap_auth_enabled | bool
|
||||||
|
|
||||||
- name: Create signing key
|
- name: Create signing key
|
||||||
shell: "{{ matrix_base_dir }}/env/bin/python -c \"from signedjson import key; file = open('{{ matrix_conf_dir }}/{{ matrix_server_url }}.signing.key','w'); key.write_signing_keys(file, [key.generate_signing_key('first')]); file.close()\""
|
shell: "{{ matrix_base_dir }}/venv/bin/python -c \"from signedjson import key; file = open('{{ matrix_conf_dir }}/{{ matrix_server_url }}.signing.key','w'); key.write_signing_keys(file, [key.generate_signing_key('first')]); file.close()\""
|
||||||
args:
|
args:
|
||||||
creates: "{{ matrix_conf_dir }}/{{ matrix_server_url }}.signing.key"
|
creates: "{{ matrix_conf_dir }}/{{ matrix_server_url }}.signing.key"
|
||||||
notify: __matrix_restart
|
notify: __matrix_restart
|
||||||
|
@ -11,7 +11,7 @@ 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
|
ExecStart={{ matrix_base_dir }}/venv/bin/python -m synapse.app.homeserver --config-path={{ matrix_conf_dir }}/homeserver.yml
|
||||||
SyslogIdentifier=matrix-synapse
|
SyslogIdentifier=matrix-synapse
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user