mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-23 04:55:46 +00:00
2c719b2ef7
We used to pass the shared secret for double-puppeting via a `login_shared_secret` parameter, which doesn't seem to exist anymore. The proper way to do it is via `login_shared_secret_map`. The comments for `login_shared_secret_map` seem to indicate that it's only usable with the shared-secret-auth password provider. However, this bridge is based on mautrix-python (`>=0.20.5,<0.21`) as per its `requirements.txt` Support for double-puppeting via arbitrary access tokens landed in mautrix-python 0.20.1 (6f25b62e80/CHANGELOG.md (L44-L53)
), so it should be possible to use appservice double-puppet. Related toaf04ca1238
A bunch of other parameters seem to have moved around as well. This patch introduces some new Ansible variables for controlling additional settings related to encryption, etc.
23 lines
1.1 KiB
YAML
23 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Fail if required beeper-linkedin settings not defined
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
You need to define a required configuration setting (`{{ item.name }}`).
|
|
when: "item.when | bool and vars[item.name] == ''"
|
|
with_items:
|
|
- {'name': 'matrix_beeper_linkedin_appservice_token', when: true}
|
|
- {'name': 'matrix_beeper_linkedin_homeserver_address', when: true}
|
|
- {'name': 'matrix_beeper_linkedin_homeserver_token', when: true}
|
|
- {'name': 'matrix_beeper_linkedin_database_hostname', when: "{{ matrix_beeper_linkedin_database_engine == 'postgres' }}"}
|
|
- {'name': 'matrix_beeper_linkedin_container_network', when: true}
|
|
|
|
- name: (Deprecation) Catch and report renamed beeper-linkedin settings
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
Your configuration contains a variable, which now has a different name.
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
when: "item.old in vars"
|
|
with_items:
|
|
- {'old': 'matrix_beeper_linkedin_login_shared_secret', 'new': '<superseded by matrix_beeper_linkedin_bridge_login_shared_secret_map_*>'}
|