Configure Synapse provider

This commit is contained in:
Alexandre Iooss 2019-02-26 18:04:46 +01:00
parent 9ba730392e
commit 11bc3b8e22
5 changed files with 20 additions and 1 deletions

View File

@ -10,4 +10,3 @@
mode: 0600
owner: mxisd
notify: Restart mxisd service

View File

@ -38,6 +38,11 @@ ldap:
bindPassword: '{{ ldap_matrix_password }}'
baseDNs:
- '{{ ldap_user_tree }}'
attribute:
uid:
type: 'uid'
value: 'uid'
name: 'uid'
#################################################

View File

@ -13,9 +13,17 @@
owner: matrix-synapse
loop:
- database.yaml
- enable_group_creation.yaml
- listeners.yaml
- no_tls.yaml
- password_providers.yaml
- server_name.yaml
- trusted_third_party_id_servers.yaml
notify: Restart matrix-synapse service
- name: Install rest auth provider
get_url:
url: https://raw.githubusercontent.com/kamax-matrix/matrix-synapse-rest-auth/master/rest_auth_provider.py
dest: /usr/local/lib/python3.5/dist-packages/rest_auth_provider.py
mode: 0755
notify: Restart matrix-synapse service

View File

@ -0,0 +1,2 @@
# {{ ansible_managed }}
enable_group_creation: true

View File

@ -0,0 +1,5 @@
# {{ ansible_managed }}
password_providers:
- module: "rest_auth_provider.RestAuthProvider"
config:
endpoint: "http://127.0.0.1:8090"