Ver código fonte

Make maubot automatically create its own user.

pull/3376/head
Fabio Bonelli 1 ano atrás
pai
commit
a508d2a069
3 arquivos alterados com 20 adições e 1 exclusões
  1. +9
    -1
      docs/configuring-playbook-bot-maubot.md
  2. +6
    -0
      group_vars/matrix_servers
  3. +5
    -0
      roles/custom/matrix-bot-maubot/defaults/main.yml

+ 9
- 1
docs/configuring-playbook-bot-maubot.md Ver arquivo

@@ -27,9 +27,17 @@ maubot administration interface.
After configuring the playbook, run the [installation](installing.md) command again: After configuring the playbook, run the [installation](installing.md) command again:


``` ```
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start
``` ```


**Notes**:

- the `ensure-matrix-users-created` playbook tag makes the playbook automatically create the bot's user account

- if you change the bot password (`matrix_bot_maubot_initial_password` in your `vars.yml` file) subsequently,
the bot user's credentials on the homeserver won't be updated automatically.
If you'd like to change the bot user's password, use a tool like [synapse-admin](configuring-playbook-synapse-admin.md) to change it.

## Usage ## Usage


You can visit `matrix.<your-domain>/_matrix/maubot/` to manage your available plugins, clients and instances. You can visit `matrix.<your-domain>/_matrix/maubot/` to manage your available plugins, clients and instances.


+ 6
- 0
group_vars/matrix_servers Ver arquivo

@@ -5174,6 +5174,12 @@ matrix_user_creator_users_auto: |
'initial_password': matrix_bot_buscarron_password, 'initial_password': matrix_bot_buscarron_password,
'initial_type': 'bot', 'initial_type': 'bot',
}] if matrix_bot_buscarron_enabled else []) }] if matrix_bot_buscarron_enabled else [])
+
([{
'username': matrix_bot_maubot_login,
'initial_password': matrix_bot_maubot_initial_password,
'initial_type': 'bot',
}] if matrix_bot_maubot_enabled else [])
}} }}


###################################################################### ######################################################################


+ 5
- 0
roles/custom/matrix-bot-maubot/defaults/main.yml Ver arquivo

@@ -5,6 +5,11 @@


matrix_bot_maubot_enabled: true matrix_bot_maubot_enabled: true


matrix_bot_maubot_login: bot.maubot
# This is just initial password and it will not manage subsequent password changes.
# Use a tool like synapse-admin if you need to change it.
matrix_bot_maubot_initial_password: "{{ lookup('password', '/dev/null', length=64 }}"

matrix_bot_maubot_scheme: https matrix_bot_maubot_scheme: https
matrix_bot_maubot_hostname: '' matrix_bot_maubot_hostname: ''
matrix_bot_maubot_path_prefix: /_matrix/maubot matrix_bot_maubot_path_prefix: /_matrix/maubot


Carregando…
Cancelar
Salvar