2022-02-05 22:32:54 +02:00
|
|
|
---
|
2021-03-24 05:46:08 +02:00
|
|
|
# A moderation tool for Matrix
|
2022-07-16 22:59:21 +02:00
|
|
|
# Project source code URL: https://github.com/matrix-org/mjolnir
|
2021-03-24 05:46:08 +02:00
|
|
|
|
|
|
|
matrix_bot_mjolnir_enabled: true
|
2021-07-02 07:10:59 +02:00
|
|
|
|
2023-10-06 14:14:03 +02:00
|
|
|
# renovate: datasource=docker depName=matrixdotorg/mjolnir
|
2024-09-12 20:34:27 +02:00
|
|
|
matrix_bot_mjolnir_version: "v1.7.0"
|
2021-07-02 07:10:59 +02:00
|
|
|
|
|
|
|
matrix_bot_mjolnir_container_image_self_build: false
|
|
|
|
matrix_bot_mjolnir_container_image_self_build_repo: "https://github.com/matrix-org/mjolnir.git"
|
|
|
|
|
|
|
|
matrix_bot_mjolnir_docker_image: "{{ matrix_bot_mjolnir_docker_image_name_prefix }}matrixdotorg/mjolnir:{{ matrix_bot_mjolnir_version }}"
|
|
|
|
matrix_bot_mjolnir_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_mjolnir_container_image_self_build else matrix_container_global_registry_prefix }}"
|
2021-03-24 05:46:08 +02:00
|
|
|
matrix_bot_mjolnir_docker_image_force_pull: "{{ matrix_bot_mjolnir_docker_image.endswith(':latest') }}"
|
|
|
|
|
|
|
|
matrix_bot_mjolnir_base_path: "{{ matrix_base_data_path }}/mjolnir"
|
|
|
|
matrix_bot_mjolnir_config_path: "{{ matrix_bot_mjolnir_base_path }}/config"
|
|
|
|
matrix_bot_mjolnir_data_path: "{{ matrix_bot_mjolnir_base_path }}/data"
|
2021-07-02 07:10:59 +02:00
|
|
|
matrix_bot_mjolnir_docker_src_files_path: "{{ matrix_bot_mjolnir_base_path }}/docker-src"
|
2021-03-24 05:46:08 +02:00
|
|
|
|
2024-01-07 09:20:24 +02:00
|
|
|
matrix_bot_mjolnir_container_network: ""
|
|
|
|
|
|
|
|
matrix_bot_mjolnir_container_additional_networks: "{{ matrix_bot_mjolnir_container_additional_networks_auto + matrix_bot_mjolnir_container_additional_networks_custom }}"
|
|
|
|
matrix_bot_mjolnir_container_additional_networks_auto: []
|
|
|
|
matrix_bot_mjolnir_container_additional_networks_custom: []
|
|
|
|
|
2021-03-24 05:46:08 +02:00
|
|
|
# A list of extra arguments to pass to the container
|
|
|
|
matrix_bot_mjolnir_container_extra_arguments: []
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-mjolnir.service depends on
|
2024-01-07 09:20:24 +02:00
|
|
|
matrix_bot_mjolnir_systemd_required_services_list: "{{ matrix_bot_mjolnir_systemd_required_services_list_default + matrix_bot_mjolnir_systemd_required_services_list_auto + matrix_bot_mjolnir_systemd_required_services_list_custom }}"
|
2024-06-04 12:14:34 +02:00
|
|
|
matrix_bot_mjolnir_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
|
2024-01-07 09:20:24 +02:00
|
|
|
matrix_bot_mjolnir_systemd_required_services_list_auto: []
|
|
|
|
matrix_bot_mjolnir_systemd_required_services_list_custom: []
|
2021-03-24 05:46:08 +02:00
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-mjolnir.service wants
|
|
|
|
matrix_bot_mjolnir_systemd_wanted_services_list: []
|
|
|
|
|
2024-03-24 22:55:21 +02:00
|
|
|
# Whether Mjolnir should talk to the homeserver through Pantalaimon
|
|
|
|
# If true, then other variables must be provided including pointing
|
|
|
|
# `matrix_bot_mjolnir_homeserver_url` to the Pantalaimon URL.
|
|
|
|
matrix_bot_mjolnir_pantalaimon_use: false
|
|
|
|
|
|
|
|
# The access token for the bot user. Required when NOT using Pantalaimon.
|
|
|
|
# (Otherwise provide `matrix_bot_mjolnir_pantalaimon_username` and `matrix_bot_mjolnir_pantalaimon_password` instead.)
|
2021-03-24 05:46:08 +02:00
|
|
|
matrix_bot_mjolnir_access_token: ""
|
|
|
|
|
2024-03-24 22:55:21 +02:00
|
|
|
# User name and password for the bot. Required when using Pantalaimon.
|
|
|
|
# (Otherwise provide `matrix_bot_mjolnir_access_token` instead.)
|
|
|
|
matrix_bot_mjolnir_pantalaimon_username: ""
|
|
|
|
matrix_bot_mjolnir_pantalaimon_password: ""
|
|
|
|
|
2021-03-24 05:46:08 +02:00
|
|
|
# The room ID where people can use the bot. The bot has no access controls, so
|
|
|
|
# anyone in this room can use the bot - secure your room!
|
|
|
|
# This should be a room alias or room ID - not a matrix.to URL.
|
|
|
|
# Note: Mjolnir is fairly verbose - expect a lot of messages from it.
|
|
|
|
matrix_bot_mjolnir_management_room: ""
|
|
|
|
|
2024-03-24 22:55:21 +02:00
|
|
|
# Endpoint URL that Mjolnir uses to interact with the matrix homeserver (client-server API).
|
|
|
|
# Set this to the pantalaimon URL if you're using that.
|
|
|
|
matrix_bot_mjolnir_homeserver_url: ""
|
|
|
|
|
|
|
|
# Endpoint URL that Mjolnir could use to fetch events related to reports (client-server API and /_synapse/),
|
|
|
|
# only set this to the public-internet homeserver client API URL, do NOT set this to the pantalaimon URL.
|
|
|
|
matrix_bot_mjolnir_raw_homeserver_url: ""
|
|
|
|
|
2021-03-24 05:46:08 +02:00
|
|
|
# Default configuration template which covers the generic use case.
|
|
|
|
# You can customize it by controlling the various variables inside it.
|
|
|
|
#
|
|
|
|
# For a more advanced customization, you can extend the default (see `matrix_bot_mjolnir_configuration_extension_yaml`)
|
|
|
|
# or completely replace this variable with your own template.
|
|
|
|
matrix_bot_mjolnir_configuration_yaml: "{{ lookup('template', 'templates/production.yaml.j2') }}"
|
|
|
|
|
|
|
|
matrix_bot_mjolnir_configuration_extension_yaml: |
|
|
|
|
# Your custom YAML configuration goes here.
|
|
|
|
# This configuration extends the default starting configuration (`matrix_bot_mjolnir_configuration_yaml`).
|
|
|
|
#
|
|
|
|
# You can override individual variables from the default configuration, or introduce new ones.
|
|
|
|
#
|
|
|
|
# If you need something more special, you can take full control by
|
|
|
|
# completely redefining `matrix_bot_mjolnir_configuration_yaml`.
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
matrix_bot_mjolnir_configuration_extension: "{{ matrix_bot_mjolnir_configuration_extension_yaml | from_yaml if matrix_bot_mjolnir_configuration_extension_yaml | from_yaml is mapping else {} }}"
|
2021-03-24 05:46:08 +02:00
|
|
|
|
|
|
|
# Holds the final configuration (a combination of the default and its extension).
|
|
|
|
# You most likely don't need to touch this variable. Instead, see `matrix_bot_mjolnir_configuration_yaml`.
|
2022-07-18 11:28:39 +02:00
|
|
|
matrix_bot_mjolnir_configuration: "{{ matrix_bot_mjolnir_configuration_yaml | from_yaml | combine(matrix_bot_mjolnir_configuration_extension, recursive=True) }}"
|