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 mode: 0600
owner: mxisd owner: mxisd
notify: Restart mxisd service notify: Restart mxisd service

View file

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

View file

@ -13,9 +13,17 @@
owner: matrix-synapse owner: matrix-synapse
loop: loop:
- database.yaml - database.yaml
- enable_group_creation.yaml
- listeners.yaml - listeners.yaml
- no_tls.yaml - no_tls.yaml
- password_providers.yaml
- server_name.yaml - server_name.yaml
- trusted_third_party_id_servers.yaml - trusted_third_party_id_servers.yaml
notify: Restart matrix-synapse service 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"