xoxys.matrix/README.md

543 lines
8.8 KiB
Markdown
Raw Normal View History

2019-01-18 13:04:13 +00:00
# xoxys.matrix
2019-10-17 19:23:22 +00:00
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.matrix/status.svg)](https://drone.rknet.org/ansible/xoxys.matrix)
2019-01-18 13:04:13 +00:00
2019-10-17 19:23:22 +00:00
2019-11-06 20:05:07 +00:00
Setup a matrix-synapse chat server
2019-10-17 19:23:22 +00:00
## Table of content
* [Default Variables](#default-variables)
* [matrix_base_dir](#matrix_base_dir)
2019-11-22 23:00:55 +00:00
* [matrix_client_url](#matrix_client_url)
2019-10-17 19:23:22 +00:00
* [matrix_conf_dir](#matrix_conf_dir)
* [matrix_data_dir](#matrix_data_dir)
2019-11-22 23:00:55 +00:00
* [matrix_db_name](#matrix_db_name)
* [matrix_db_password](#matrix_db_password)
* [matrix_db_port](#matrix_db_port)
* [matrix_db_server](#matrix_db_server)
* [matrix_db_ssl_mode](#matrix_db_ssl_mode)
* [matrix_db_ssl_root_cert](#matrix_db_ssl_root_cert)
* [matrix_db_type](#matrix_db_type)
* [matrix_db_user](#matrix_db_user)
* [matrix_extra_groups](#matrix_extra_groups)
2019-10-17 19:23:22 +00:00
* [matrix_filter_timeline_limit](#matrix_filter_timeline_limit)
2019-11-22 23:00:55 +00:00
* [matrix_form_secret](#matrix_form_secret)
* [matrix_group](#matrix_group)
2019-10-17 19:23:22 +00:00
* [matrix_http_bind_ips](#matrix_http_bind_ips)
* [matrix_http_bind_port](#matrix_http_bind_port)
* [matrix_https_bind_ips](#matrix_https_bind_ips)
* [matrix_https_bind_port](#matrix_https_bind_port)
* [matrix_ldap_auth_basedn](#matrix_ldap_auth_basedn)
2019-11-22 23:00:55 +00:00
* [matrix_ldap_auth_enabled](#matrix_ldap_auth_enabled)
2019-10-17 19:23:22 +00:00
* [matrix_ldap_auth_mail_attr](#matrix_ldap_auth_mail_attr)
* [matrix_ldap_auth_name_attr](#matrix_ldap_auth_name_attr)
2019-11-22 23:00:55 +00:00
* [matrix_ldap_auth_server](#matrix_ldap_auth_server)
* [matrix_ldap_auth_uid_attr](#matrix_ldap_auth_uid_attr)
* [matrix_ldap_auth_use_starttls](#matrix_ldap_auth_use_starttls)
* [matrix_log_console_level](#matrix_log_console_level)
* [matrix_log_dir](#matrix_log_dir)
* [matrix_log_file_level](#matrix_log_file_level)
* [matrix_log_ldap_auth_level](#matrix_log_ldap_auth_level)
* [matrix_log_ldap_level](#matrix_log_ldap_level)
* [matrix_log_synapse_level](#matrix_log_synapse_level)
* [matrix_log_synapse_sql_level](#matrix_log_synapse_sql_level)
2019-10-17 19:23:22 +00:00
* [matrix_macaroon_secret_key](#matrix_macaroon_secret_key)
2019-11-22 23:00:55 +00:00
* [matrix_packages](#matrix_packages)
* [matrix_packages_extra](#matrix_packages_extra)
* [matrix_rc_login_account](#matrix_rc_login_account)
* [matrix_rc_login_address](#matrix_rc_login_address)
* [matrix_restart_policy](#matrix_restart_policy)
* [matrix_server_url](#matrix_server_url)
* [matrix_tls_cert_path](#matrix_tls_cert_path)
* [matrix_tls_cert_source](#matrix_tls_cert_source)
2019-10-17 19:23:22 +00:00
* [matrix_tls_dhparam_path](#matrix_tls_dhparam_path)
* [matrix_tls_dhparam_size](#matrix_tls_dhparam_size)
2019-11-22 23:00:55 +00:00
* [matrix_tls_enabled](#matrix_tls_enabled)
2019-10-17 19:23:22 +00:00
* [matrix_tls_key_path](#matrix_tls_key_path)
* [matrix_tls_key_source](#matrix_tls_key_source)
2019-11-22 23:00:55 +00:00
* [matrix_url_preview_enabled](#matrix_url_preview_enabled)
* [matrix_url_preview_max_spider_size](#matrix_url_preview_max_spider_size)
* [matrix_user](#matrix_user)
* [matrix_user_home](#matrix_user_home)
* [matrix_version](#matrix_version)
* [matrix_web_client_location](#matrix_web_client_location)
2019-10-17 19:23:22 +00:00
* [Dependencies](#dependencies)
* [License](#license)
* [Author](#author)
---
## Default Variables
2019-11-22 23:00:55 +00:00
### matrix_base_dir
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_base_dir: /opt/matrix
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_client_url
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_client_url: https://matrix.example.com
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_conf_dir
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_conf_dir: '{{ matrix_base_dir }}/config'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_data_dir
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_data_dir: '{{ matrix_base_dir }}/data'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_name
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_name: matrix
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_password
2019-10-27 14:41:04 +00:00
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_password: secure
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_port
2019-10-27 14:41:04 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_port: 5432
2019-10-27 14:41:04 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_server
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_server: localhost
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_ssl_mode
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_ssl_mode: disable
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_ssl_root_cert
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_ssl_root_cert: /etc/pki/tls/certs/ca-bundle.trust.crt
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_type
Sopported values are `pgsql` and `sqlite`.
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_type: pgsql
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_db_user
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_db_user: pgmatrix
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_extra_groups
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_extra_groups: []
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_filter_timeline_limit
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_filter_timeline_limit: -1
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_form_secret
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_form_secret: oFP3m&,r^wJ=Tr#=Ruww5+h0e;-DZqcuVGXV4XgRZIAt~Gv2YF
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_group
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_group: '{{ matrix_user }}'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_http_bind_ips
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_http_bind_ips:
- '::'
- 0.0.0.0
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_http_bind_port
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_http_bind_port: 8008
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_https_bind_ips
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_https_bind_ips: '{{ matrix_http_bind_ips }}'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_https_bind_port
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_https_bind_port: 8448
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_basedn
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_basedn: ou=users,dc=example,dc=com
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_enabled
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_enabled: false
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_mail_attr
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_mail_attr: email
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_name_attr
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_name_attr: cn
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_server
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_server: ldaps://ldap.example.com:636
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_uid_attr
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_uid_attr: uid
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_ldap_auth_use_starttls
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_ldap_auth_use_starttls: 'false'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_console_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_console_level: ERROR
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_dir
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_dir: '{{ matrix_base_dir }}/log'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_file_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_file_level: INFO
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_ldap_auth_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_ldap_auth_level: INFO
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_ldap_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_ldap_level: INFO
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_synapse_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_synapse_level: INFO
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_log_synapse_sql_level
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_log_synapse_sql_level: INFO
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_macaroon_secret_key
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_macaroon_secret_key: jr;vhMlW=+U8pwBhVE^=6.,M94Gcyg_07Z-nNAsgj4ZZ:ew:HV
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_packages
Ensure EPEL repo is available at this server
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_packages:
- '@Development tools'
- libtiff-devel
- libjpeg-devel
- libzip-devel
- freetype-devel
- lcms2-devel
- libwebp-devel
- tcl-devel
- tk-devel
- redhat-rpm-config
- python36-devel
- libffi-devel
- openssl-devel
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_packages_extra
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_packages_extra: []
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_rc_login_account
Ratelimiting settings for login requests based on the account the client is attempting to log into.
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_rc_login_account:
per_second: 0.17
burst_count: 3
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_rc_login_address
Ratelimiting settings for login requests based on the client's IP address.
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_rc_login_address:
per_second: 0.17
burst_count: 3
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_restart_policy
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_restart_policy: on-failure
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_server_url
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_server_url: example.com
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_tls_cert_path
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_cert_path: '{{ matrix_base_dir }}/tls/certs/mycert.pem'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_tls_cert_source
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_cert_source: mycert.pem
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_tls_dhparam_path
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_dhparam_path: '{{ matrix_base_dir }}/tls/dhparam.pem'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_tls_dhparam_size
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_dhparam_size: 2048
2019-10-17 19:23:22 +00:00
```
### matrix_tls_enabled
#### Default value
```YAML
matrix_tls_enabled: false
```
2019-11-22 23:00:55 +00:00
### matrix_tls_key_path
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_key_path: '{{ matrix_base_dir }}/tls/private/mykey.pem'
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_tls_key_source
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_tls_key_source: mykey.pem
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_url_preview_enabled
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_url_preview_enabled: false
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_url_preview_max_spider_size
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_url_preview_max_spider_size: 10M
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_user
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_user: matrix
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_user_home
2019-10-17 19:23:22 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_user_home: /home/{{ matrix_user }}
2019-10-17 19:23:22 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_version
2019-11-06 20:56:54 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_version: 1.2.1
2019-11-06 20:56:54 +00:00
```
2019-11-22 23:00:55 +00:00
### matrix_web_client_location
2019-11-06 20:56:54 +00:00
#### Default value
```YAML
2019-11-22 23:00:55 +00:00
matrix_web_client_location: /path/to/web/root
2019-11-06 20:56:54 +00:00
```
2019-10-17 19:23:22 +00:00
## Dependencies
None.
## License
2019-11-08 11:56:01 +00:00
MIT
2019-10-17 19:23:22 +00:00
## Author
2019-11-07 08:25:42 +00:00
[xoxys](https://gitea.rknet.org/xoxys)