Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

124 строки
8.3 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 - 2026 Catalan Lover <catalanlover@protonmail.com>
  3. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # A moderation tool for Matrix
  9. # Project source code URL: https://github.com/the-draupnir-project/Draupnir
  10. matrix_appservice_draupnir_for_all_enabled: true
  11. # renovate: datasource=docker depName=gnuxie/draupnir
  12. matrix_appservice_draupnir_for_all_version: "v2.9.0"
  13. matrix_appservice_draupnir_for_all_container_image_self_build: false
  14. matrix_appservice_draupnir_for_all_container_image_self_build_repo: "https://github.com/the-draupnir-project/Draupnir.git"
  15. matrix_appservice_draupnir_for_all_container_image_registry_prefix: "{{ 'localhost/' if matrix_appservice_draupnir_for_all_container_image_self_build else matrix_appservice_draupnir_for_all_container_image_registry_prefix_upstream }}"
  16. matrix_appservice_draupnir_for_all_container_image_registry_prefix_upstream: "{{ matrix_appservice_draupnir_for_all_container_image_registry_prefix_upstream_default }}"
  17. matrix_appservice_draupnir_for_all_container_image_registry_prefix_upstream_default: "docker.io/"
  18. matrix_appservice_draupnir_for_all_container_image: "{{ matrix_appservice_draupnir_for_all_container_image_registry_prefix }}{{ matrix_appservice_draupnir_for_all_container_image_registry_namespace_identifier }}:{{ matrix_appservice_draupnir_for_all_version }}"
  19. matrix_appservice_draupnir_for_all_container_image_registry_namespace_identifier: "gnuxie/draupnir"
  20. matrix_appservice_draupnir_for_all_container_image_force_pull: "{{ matrix_appservice_draupnir_for_all_container_image.endswith(':latest') }}"
  21. matrix_appservice_draupnir_for_all_base_path: "{{ matrix_base_data_path }}/draupnir-for-all"
  22. matrix_appservice_draupnir_for_all_config_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/config"
  23. matrix_appservice_draupnir_for_all_data_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/data"
  24. matrix_appservice_draupnir_for_all_container_src_files_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/docker-src"
  25. matrix_appservice_draupnir_for_all_container_network: ""
  26. matrix_appservice_draupnir_for_all_container_additional_networks: "{{ matrix_appservice_draupnir_for_all_container_additional_networks_auto + matrix_appservice_draupnir_for_all_container_additional_networks_custom }}"
  27. matrix_appservice_draupnir_for_all_container_additional_networks_auto: []
  28. matrix_appservice_draupnir_for_all_container_additional_networks_custom: []
  29. # A list of extra arguments to pass to the container
  30. matrix_appservice_draupnir_for_all_container_extra_arguments: []
  31. # List of systemd services that matrix-bot-draupnir.service depends on
  32. matrix_appservice_draupnir_for_all_systemd_required_services_list: "{{ matrix_appservice_draupnir_for_all_systemd_required_services_list_default + matrix_appservice_draupnir_for_all_systemd_required_services_list_auto + matrix_appservice_draupnir_for_all_systemd_required_services_list_custom }}"
  33. matrix_appservice_draupnir_for_all_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  34. matrix_appservice_draupnir_for_all_systemd_required_services_list_auto: []
  35. matrix_appservice_draupnir_for_all_systemd_required_services_list_custom: []
  36. # List of systemd services that matrix-bot-draupnir.service wants
  37. matrix_appservice_draupnir_for_all_systemd_wanted_services_list: []
  38. # The room ID where people can use the bot. The bot has no access controls, so
  39. # anyone in this room can use the bot - secure your room!
  40. # This should be a room alias - not a matrix.to URL.
  41. # Note: Draupnir is fairly verbose - expect a lot of messages from it.
  42. # This room is different for Appservice Mode compared to normal mode.
  43. # In Appservice mode it provides functions like user management.
  44. matrix_appservice_draupnir_for_all_config_adminRoom: "" # noqa var-naming
  45. # Controls if the room state backing store is activated.
  46. # Room state backing store makes restarts of the bot lightning fast as the bot does not suffer from amnesia.
  47. # This config option has diminished improvements for bots on extremely fast homeservers or very very small bots on fast homeservers.
  48. matrix_appservice_draupnir_for_all_config_roomStateBackingStore_enabled: false # noqa var-naming
  49. matrix_appservice_draupnir_for_all_database_username: matrix_appservice_draupnir_for_all
  50. matrix_appservice_draupnir_for_all_database_password: 'some-passsword'
  51. matrix_appservice_draupnir_for_all_database_hostname: ''
  52. matrix_appservice_draupnir_for_all_database_port: 5432
  53. matrix_appservice_draupnir_for_all_database_name: matrix_appservice_draupnir_for_all
  54. matrix_appservice_draupnir_for_all_database_sslmode: disable
  55. matrix_appservice_draupnir_for_all_appservice_port: "9001"
  56. matrix_appservice_draupnir_for_all_appservice_url: 'http://matrix-appservice-draupnir-for-all'
  57. matrix_appservice_draupnir_for_all_database_connection_string: 'postgresql://{{ matrix_appservice_draupnir_for_all_database_username }}:{{ matrix_appservice_draupnir_for_all_database_password }}@{{ matrix_appservice_draupnir_for_all_database_hostname }}:{{ matrix_appservice_draupnir_for_all_database_port }}/{{ matrix_appservice_draupnir_for_all_database_name }}?sslmode={{ matrix_appservice_draupnir_for_all_database_sslmode }}'
  58. matrix_appservice_draupnir_for_all_user_prefix: "draupnir_"
  59. matrix_appservice_draupnir_for_all_registration_yaml: |
  60. id: "draupnir-for-all"
  61. as_token: "{{ matrix_appservice_draupnir_for_all_appservice_token }}"
  62. hs_token: "{{ matrix_appservice_draupnir_for_all_homeserver_token }}"
  63. url: "{{ matrix_appservice_draupnir_for_all_appservice_url }}:{{ matrix_appservice_draupnir_for_all_appservice_port }}"
  64. sender_localpart: draupnir-main
  65. namespaces:
  66. users:
  67. - exclusive: true
  68. regex: '@{{ matrix_appservice_draupnir_for_all_user_prefix }}*'
  69. rate_limited: false
  70. matrix_appservice_draupnir_for_all_registration: "{{ matrix_appservice_draupnir_for_all_registration_yaml | from_yaml }}"
  71. matrix_appservice_draupnir_for_all_configuration_appservice: "{{ lookup('template', 'templates/production-appservice.yaml.j2') | from_yaml }}"
  72. # Default configuration template which covers the generic use case.
  73. # You can customize it by controlling the various variables inside it.
  74. #
  75. # For a more advanced customization, you can extend the default (see `matrix_appservice_draupnir_for_all_configuration_extension_yaml`)
  76. # or completely replace this variable with your own template.
  77. matrix_appservice_draupnir_for_all_configuration_yaml: "{{ lookup('template', 'templates/production-bots.yaml.j2') }}"
  78. matrix_appservice_draupnir_for_all_configuration_extension_yaml: |
  79. # Your custom YAML configuration goes here.
  80. # This configuration extends the default starting configuration (`matrix_appservice_draupnir_for_all_configuration_yaml`).
  81. #
  82. # You can override individual variables from the default configuration, or introduce new ones.
  83. #
  84. # If you need something more special, you can take full control by
  85. # completely redefining `matrix_appservice_draupnir_for_all_configuration_yaml`.
  86. matrix_appservice_draupnir_for_all_configuration_extension: "{{ matrix_appservice_draupnir_for_all_configuration_extension_yaml | from_yaml if matrix_appservice_draupnir_for_all_configuration_extension_yaml | from_yaml is mapping else {} }}"
  87. # Holds the final configuration (a combination of the default and its extension).
  88. # You most likely don't need to touch this variable. Instead, see `matrix_appservice_draupnir_for_all_configuration_yaml`.
  89. matrix_appservice_draupnir_for_all_configuration: "{{ matrix_appservice_draupnir_for_all_configuration_yaml | from_yaml | combine(matrix_appservice_draupnir_for_all_configuration_extension, recursive=True) }}"
  90. # matrix_appservice_draupnir_for_all_restart_necessary controls whether the service
  91. # will be restarted (when true) or merely started (when false) by the
  92. # systemd service manager role (when conditional restart is enabled).
  93. #
  94. # This value is automatically computed during installation based on whether
  95. # any configuration files, the systemd service file, or the container image changed.
  96. # The default of `false` means "no restart needed" — appropriate when the role's
  97. # installation tasks haven't run (e.g., due to --tags skipping them).
  98. matrix_appservice_draupnir_for_all_restart_necessary: false