Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

93 righe
5.1 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # A moderation tool for Matrix
  6. # Project source code URL: https://github.com/matrix-org/mjolnir
  7. matrix_bot_mjolnir_enabled: true
  8. # renovate: datasource=docker depName=matrixdotorg/mjolnir
  9. matrix_bot_mjolnir_version: "v1.8.3"
  10. matrix_bot_mjolnir_container_image_self_build: false
  11. matrix_bot_mjolnir_container_image_self_build_repo: "https://github.com/matrix-org/mjolnir.git"
  12. matrix_bot_mjolnir_docker_image: "{{ matrix_bot_mjolnir_docker_image_name_prefix }}matrixdotorg/mjolnir:{{ matrix_bot_mjolnir_version }}"
  13. matrix_bot_mjolnir_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_mjolnir_container_image_self_build else matrix_container_global_registry_prefix }}"
  14. matrix_bot_mjolnir_docker_image_force_pull: "{{ matrix_bot_mjolnir_docker_image.endswith(':latest') }}"
  15. matrix_bot_mjolnir_base_path: "{{ matrix_base_data_path }}/mjolnir"
  16. matrix_bot_mjolnir_config_path: "{{ matrix_bot_mjolnir_base_path }}/config"
  17. matrix_bot_mjolnir_data_path: "{{ matrix_bot_mjolnir_base_path }}/data"
  18. matrix_bot_mjolnir_docker_src_files_path: "{{ matrix_bot_mjolnir_base_path }}/docker-src"
  19. matrix_bot_mjolnir_container_network: ""
  20. matrix_bot_mjolnir_container_additional_networks: "{{ matrix_bot_mjolnir_container_additional_networks_auto + matrix_bot_mjolnir_container_additional_networks_custom }}"
  21. matrix_bot_mjolnir_container_additional_networks_auto: []
  22. matrix_bot_mjolnir_container_additional_networks_custom: []
  23. # A list of extra arguments to pass to the container
  24. matrix_bot_mjolnir_container_extra_arguments: []
  25. # List of systemd services that matrix-bot-mjolnir.service depends on
  26. 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 }}"
  27. matrix_bot_mjolnir_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  28. matrix_bot_mjolnir_systemd_required_services_list_auto: []
  29. matrix_bot_mjolnir_systemd_required_services_list_custom: []
  30. # List of systemd services that matrix-bot-mjolnir.service wants
  31. matrix_bot_mjolnir_systemd_wanted_services_list: []
  32. # Whether Mjolnir should talk to the homeserver through Pantalaimon
  33. # If true, then other variables must be provided including pointing
  34. # `matrix_bot_mjolnir_homeserver_url` to the Pantalaimon URL.
  35. matrix_bot_mjolnir_pantalaimon_use: false
  36. # The access token for the bot user. Required when NOT using Pantalaimon.
  37. # (Otherwise provide `matrix_bot_mjolnir_pantalaimon_username` and `matrix_bot_mjolnir_pantalaimon_password` instead.)
  38. matrix_bot_mjolnir_access_token: ""
  39. # User name and password for the bot. Required when using Pantalaimon.
  40. # (Otherwise provide `matrix_bot_mjolnir_access_token` instead.)
  41. matrix_bot_mjolnir_pantalaimon_username: ""
  42. matrix_bot_mjolnir_pantalaimon_password: ""
  43. # The room ID where people can use the bot. The bot has no access controls, so
  44. # anyone in this room can use the bot - secure your room!
  45. # This should be a room alias or room ID - not a matrix.to URL.
  46. # Note: Mjolnir is fairly verbose - expect a lot of messages from it.
  47. matrix_bot_mjolnir_management_room: ""
  48. # Endpoint URL that Mjolnir uses to interact with the Matrix homeserver (client-server API).
  49. # Set this to the pantalaimon URL if you're using that.
  50. matrix_bot_mjolnir_homeserver_url: ""
  51. # Endpoint URL that Mjolnir could use to fetch events related to reports (client-server API and /_synapse/),
  52. # only set this to the public-internet homeserver client API URL, do NOT set this to the pantalaimon URL.
  53. matrix_bot_mjolnir_raw_homeserver_url: ""
  54. # Default configuration template which covers the generic use case.
  55. # You can customize it by controlling the various variables inside it.
  56. #
  57. # For a more advanced customization, you can extend the default (see `matrix_bot_mjolnir_configuration_extension_yaml`)
  58. # or completely replace this variable with your own template.
  59. matrix_bot_mjolnir_configuration_yaml: "{{ lookup('template', 'templates/production.yaml.j2') }}"
  60. matrix_bot_mjolnir_configuration_extension_yaml: |
  61. # Your custom YAML configuration goes here.
  62. # This configuration extends the default starting configuration (`matrix_bot_mjolnir_configuration_yaml`).
  63. #
  64. # You can override individual variables from the default configuration, or introduce new ones.
  65. #
  66. # If you need something more special, you can take full control by
  67. # completely redefining `matrix_bot_mjolnir_configuration_yaml`.
  68. 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 {} }}"
  69. # Holds the final configuration (a combination of the default and its extension).
  70. # You most likely don't need to touch this variable. Instead, see `matrix_bot_mjolnir_configuration_yaml`.
  71. matrix_bot_mjolnir_configuration: "{{ matrix_bot_mjolnir_configuration_yaml | from_yaml | combine(matrix_bot_mjolnir_configuration_extension, recursive=True) }}"