Update to 2022-01-28 21:00

This commit is contained in:
Daniel Berteaud 2022-01-28 21:00:08 +01:00
parent 9abf651e65
commit f45491ce0b
5 changed files with 20 additions and 17 deletions

View File

@ -1,7 +1,7 @@
---
# Synapse version to deploy
synapse_version: 1.49.2
synapse_version: 1.51.0
# Should ansible handle Synapse upgrades ? If false, only initial install will be done
synapse_manage_upgrade: True

View File

@ -1 +1,7 @@
---
dependencies:
- role: repo_scl # Require python > 3.6
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version is version('8', '<')

View File

@ -27,12 +27,10 @@
when: synapse_install_mode == 'upgrade'
tags: matrix
- name: Install or update dependencies in the virtual env
- name: Install dependencies in the virtual env
pip:
state: "{{ (synapse_install_mode == 'upgrade') | ternary('latest','present') }}"
virtualenv: "{{ synapse_root_dir }}/venv"
virtualenv_command: /usr/bin/virtualenv-3
virtualenv_python: /usr/bin/python3
virtualenv_command: "{{ synapse_python }} -m venv"
name:
- bleach
- matrix-synapse-ldap3
@ -48,11 +46,10 @@
notify: restart synapse
tags: matrix
- name: Install or update synapse in a virtualenv
- name: Install synapse in the virtualenv
pip:
virtualenv: "{{ synapse_root_dir }}/venv"
virtualenv_command: /usr/bin/virtualenv-3
virtualenv_python: /usr/bin/python3
virtualenv_command: "{{ synapse_python }} -m venv"
name:
- matrix-synapse
version: "{{ synapse_version }}"
@ -73,7 +70,7 @@
- name: Install REST auth module
get_url:
url: https://raw.githubusercontent.com/ma1uta/matrix-synapse-rest-password-provider/master/rest_auth_provider.py
dest: "{{ synapse_root_dir }}/venv/lib/python3.6/site-packages/"
dest: "{{ synapse_venv_lib_dir }}"
tags: matrix
- name: Create the PostgreSQL role

View File

@ -21,9 +21,9 @@ synapse_packages:
- postgresql-devel
- libpqxx-devel
- jemalloc
- python3-virtualenv
- python3-pip
- python-psycopg2
- python-setuptools
- rh-python38-python-pip
- rh-python38-python-devel
synapse_jemalloc: /usr/lib64/libjemalloc.so.1
synapse_python: /opt/rh/rh-python38/root/usr/bin/python
synapse_venv_lib_dir: "{{ synapse_root_dir }}/venv/lib/python3.8/site-packages/"

View File

@ -20,9 +20,9 @@ synapse_packages:
- postgresql14
- postgresql-devel
- jemalloc
- python3-virtualenv
- python3-pip
- python3-psycopg2
- python3-setuptools
- python39-pip
- python39-devel
synapse_jemalloc: /usr/lib64/libjemalloc.so.2
synapse_python: /usr/bin/python3.9
synapse_venv_lib_dir: "{{ synapse_root_dir }}/venv/lib/python3.9/site-packages/"