Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

113 Zeilen
6.3 KiB

  1. # SPDX-FileCopyrightText: 2021 - 2022 Aaron Raimist
  2. # SPDX-FileCopyrightText: 2021 - 2024 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2021 - 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2021 Ahmad Haghighi
  5. # SPDX-FileCopyrightText: 2022 Chirayu Desai
  6. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  7. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  8. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  9. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  10. #
  11. # SPDX-License-Identifier: AGPL-3.0-or-later
  12. ---
  13. # A moderation tool for Matrix
  14. # Project source code URL: https://github.com/matrix-org/mjolnir
  15. matrix_bot_mjolnir_enabled: true
  16. # renovate: datasource=docker depName=matrixdotorg/mjolnir
  17. matrix_bot_mjolnir_version: "v1.12.0"
  18. matrix_bot_mjolnir_container_image_self_build: false
  19. matrix_bot_mjolnir_container_image_self_build_repo: "https://github.com/matrix-org/mjolnir.git"
  20. matrix_bot_mjolnir_container_image: "{{ matrix_bot_mjolnir_container_image_registry_prefix }}matrixdotorg/mjolnir:{{ matrix_bot_mjolnir_version }}"
  21. matrix_bot_mjolnir_container_image_registry_prefix: "{{ 'localhost/' if matrix_bot_mjolnir_container_image_self_build else matrix_bot_mjolnir_container_image_registry_prefix_upstream }}"
  22. matrix_bot_mjolnir_container_image_registry_prefix_upstream: "{{ matrix_bot_mjolnir_container_image_registry_prefix_upstream_default }}"
  23. matrix_bot_mjolnir_container_image_registry_prefix_upstream_default: "docker.io/"
  24. matrix_bot_mjolnir_container_image_force_pull: "{{ matrix_bot_mjolnir_container_image.endswith(':latest') }}"
  25. matrix_bot_mjolnir_base_path: "{{ matrix_base_data_path }}/mjolnir"
  26. matrix_bot_mjolnir_config_path: "{{ matrix_bot_mjolnir_base_path }}/config"
  27. matrix_bot_mjolnir_data_path: "{{ matrix_bot_mjolnir_base_path }}/data"
  28. matrix_bot_mjolnir_container_src_files_path: "{{ matrix_bot_mjolnir_base_path }}/docker-src"
  29. matrix_bot_mjolnir_container_network: ""
  30. matrix_bot_mjolnir_container_additional_networks: "{{ matrix_bot_mjolnir_container_additional_networks_auto + matrix_bot_mjolnir_container_additional_networks_custom }}"
  31. matrix_bot_mjolnir_container_additional_networks_auto: []
  32. matrix_bot_mjolnir_container_additional_networks_custom: []
  33. # A list of extra arguments to pass to the container
  34. matrix_bot_mjolnir_container_extra_arguments: []
  35. # List of systemd services that matrix-bot-mjolnir.service depends on
  36. 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 }}"
  37. matrix_bot_mjolnir_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  38. matrix_bot_mjolnir_systemd_required_services_list_auto: []
  39. matrix_bot_mjolnir_systemd_required_services_list_custom: []
  40. # List of systemd services that matrix-bot-mjolnir.service wants
  41. matrix_bot_mjolnir_systemd_wanted_services_list: []
  42. # Whether Mjolnir should talk to the homeserver through Pantalaimon
  43. # If true, then other variables must be provided including pointing
  44. # `matrix_bot_mjolnir_homeserver_url` to the Pantalaimon URL.
  45. matrix_bot_mjolnir_pantalaimon_use: false
  46. # The access token for the bot user. Required when NOT using Pantalaimon.
  47. # (Otherwise provide `matrix_bot_mjolnir_pantalaimon_username` and `matrix_bot_mjolnir_pantalaimon_password` instead.)
  48. matrix_bot_mjolnir_access_token: ""
  49. # User name and password for the bot. Required when using Pantalaimon.
  50. # (Otherwise provide `matrix_bot_mjolnir_access_token` instead.)
  51. matrix_bot_mjolnir_pantalaimon_username: ""
  52. matrix_bot_mjolnir_pantalaimon_password: ""
  53. # The room ID where people can use the bot. The bot has no access controls, so
  54. # anyone in this room can use the bot - secure your room!
  55. # This should be a room alias or room ID - not a matrix.to URL.
  56. # Note: Mjolnir is fairly verbose - expect a lot of messages from it.
  57. matrix_bot_mjolnir_management_room: ""
  58. # Endpoint URL that Mjolnir uses to interact with the Matrix homeserver (client-server API).
  59. # Set this to the pantalaimon URL if you're using that.
  60. matrix_bot_mjolnir_homeserver_url: ""
  61. # Endpoint URL that Mjolnir could use to fetch events related to reports (client-server API and /_synapse/),
  62. # only set this to the public-internet homeserver client API URL, do NOT set this to the pantalaimon URL.
  63. matrix_bot_mjolnir_raw_homeserver_url: ""
  64. # Default configuration template which covers the generic use case.
  65. # You can customize it by controlling the various variables inside it.
  66. #
  67. # For a more advanced customization, you can extend the default (see `matrix_bot_mjolnir_configuration_extension_yaml`)
  68. # or completely replace this variable with your own template.
  69. matrix_bot_mjolnir_configuration_yaml: "{{ lookup('template', 'templates/production.yaml.j2') }}"
  70. matrix_bot_mjolnir_configuration_extension_yaml: |
  71. # Your custom YAML configuration goes here.
  72. # This configuration extends the default starting configuration (`matrix_bot_mjolnir_configuration_yaml`).
  73. #
  74. # You can override individual variables from the default configuration, or introduce new ones.
  75. #
  76. # If you need something more special, you can take full control by
  77. # completely redefining `matrix_bot_mjolnir_configuration_yaml`.
  78. 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 {} }}"
  79. # Holds the final configuration (a combination of the default and its extension).
  80. # You most likely don't need to touch this variable. Instead, see `matrix_bot_mjolnir_configuration_yaml`.
  81. matrix_bot_mjolnir_configuration: "{{ matrix_bot_mjolnir_configuration_yaml | from_yaml | combine(matrix_bot_mjolnir_configuration_extension, recursive=True) }}"
  82. # matrix_bot_mjolnir_restart_necessary controls whether the service
  83. # will be restarted (when true) or merely started (when false) by the
  84. # systemd service manager role (when conditional restart is enabled).
  85. #
  86. # This value is automatically computed during installation based on whether
  87. # any configuration files, the systemd service file, or the container image changed.
  88. # The default of `false` means "no restart needed" — appropriate when the role's
  89. # installation tasks haven't run (e.g., due to --tags skipping them).
  90. matrix_bot_mjolnir_restart_necessary: false