Verified Commit b7073b58 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

roles/matrix: Upgrade synapse to Python 3

parent 03e66d8c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
when: 'matrix_domain is defined' when: 'matrix_domain is defined'
- name: install packages - name: install packages
pacman: name=python2-virtualenv,git,npm pacman: name=python,git,npm
- name: add synapse group - name: add synapse group
group: name=synapse system=yes gid=198 group: name=synapse system=yes gid=198
...@@ -22,21 +22,13 @@ ...@@ -22,21 +22,13 @@
- /var/lib/synapse/uploads - /var/lib/synapse/uploads
- name: create venv - name: create venv
command: virtualenv2 /var/lib/synapse/venv command: python -m venv /var/lib/synapse/venv
args: args:
creates: /var/lib/synapse/venv/bin/python creates: /var/lib/synapse/venv/bin/python
become: yes become: yes
become_user: synapse become_user: synapse
become_method: sudo become_method: sudo
- name: download synapse
command: git clone https://github.com/matrix-org/synapse /var/lib/synapse/synapse
args:
creates: /var/lib/synapse/synapse/setup.py
become: yes
become_user: synapse
become_method: sudo
- name: download matrix-appservice-irc - name: download matrix-appservice-irc
command: git clone https://github.com/heftig/matrix-appservice-irc /var/lib/synapse/matrix-appservice-irc command: git clone https://github.com/heftig/matrix-appservice-irc /var/lib/synapse/matrix-appservice-irc
args: args:
...@@ -47,11 +39,7 @@ ...@@ -47,11 +39,7 @@
- name: install synapse - name: install synapse
command: > command: >
/var/lib/synapse/venv/bin/pip install /var/lib/synapse/venv/bin/pip install matrix-synapse systemd-python lxml
--no-binary :all:
--only-binary lxml,pymacaroons-pynacl,signedjson,unpaddedbase64,canonicaljson
-e /var/lib/synapse/synapse
psycopg2 systemd-python lxml netaddr
args: args:
creates: /var/lib/synapse/venv/bin/synctl creates: /var/lib/synapse/venv/bin/synctl
become: yes become: yes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment