Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

113 lines
7.5 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 - 2025 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.3.1"
  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_docker_image_registry_prefix: "{{ 'localhost/' if matrix_appservice_draupnir_for_all_container_image_self_build else matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream }}"
  16. matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream: "{{ matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream_default }}"
  17. matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream_default: "docker.io/"
  18. matrix_appservice_draupnir_for_all_docker_image: "{{ matrix_appservice_draupnir_for_all_docker_image_registry_prefix }}gnuxie/draupnir:{{ matrix_appservice_draupnir_for_all_version }}"
  19. matrix_appservice_draupnir_for_all_docker_image_force_pull: "{{ matrix_appservice_draupnir_for_all_docker_image.endswith(':latest') }}"
  20. matrix_appservice_draupnir_for_all_base_path: "{{ matrix_base_data_path }}/draupnir-for-all"
  21. matrix_appservice_draupnir_for_all_config_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/config"
  22. matrix_appservice_draupnir_for_all_data_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/data"
  23. matrix_appservice_draupnir_for_all_docker_src_files_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/docker-src"
  24. matrix_appservice_draupnir_for_all_container_network: ""
  25. 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 }}"
  26. matrix_appservice_draupnir_for_all_container_additional_networks_auto: []
  27. matrix_appservice_draupnir_for_all_container_additional_networks_custom: []
  28. # A list of extra arguments to pass to the container
  29. matrix_appservice_draupnir_for_all_container_extra_arguments: []
  30. # List of systemd services that matrix-bot-draupnir.service depends on
  31. 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 }}"
  32. 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 [] }}"
  33. matrix_appservice_draupnir_for_all_systemd_required_services_list_auto: []
  34. matrix_appservice_draupnir_for_all_systemd_required_services_list_custom: []
  35. # List of systemd services that matrix-bot-draupnir.service wants
  36. matrix_appservice_draupnir_for_all_systemd_wanted_services_list: []
  37. # The room ID where people can use the bot. The bot has no access controls, so
  38. # anyone in this room can use the bot - secure your room!
  39. # This should be a room alias - not a matrix.to URL.
  40. # Note: Draupnir is fairly verbose - expect a lot of messages from it.
  41. # This room is different for Appservice Mode compared to normal mode.
  42. # In Appservice mode it provides functions like user management.
  43. matrix_appservice_draupnir_for_all_config_adminRoom: "" # noqa var-naming
  44. # Controls if the room state backing store is activated.
  45. # Room state backing store makes restarts of the bot lightning fast as the bot does not suffer from amnesia.
  46. # This config option has diminished improvements for bots on extremely fast homeservers or very very small bots on fast homeservers.
  47. matrix_appservice_draupnir_for_all_config_roomStateBackingStore_enabled: false # noqa var-naming
  48. matrix_appservice_draupnir_for_all_database_username: matrix_appservice_draupnir_for_all
  49. matrix_appservice_draupnir_for_all_database_password: 'some-passsword'
  50. matrix_appservice_draupnir_for_all_database_hostname: ''
  51. matrix_appservice_draupnir_for_all_database_port: 5432
  52. matrix_appservice_draupnir_for_all_database_name: matrix_appservice_draupnir_for_all
  53. matrix_appservice_draupnir_for_all_database_sslmode: disable
  54. matrix_appservice_draupnir_for_all_appservice_port: "9001"
  55. matrix_appservice_draupnir_for_all_appservice_url: 'http://matrix-appservice-draupnir-for-all'
  56. 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 }}'
  57. matrix_appservice_draupnir_for_all_user_prefix: "draupnir_"
  58. matrix_appservice_draupnir_for_all_registration_yaml: |
  59. id: "draupnir-for-all"
  60. as_token: "{{ matrix_appservice_draupnir_for_all_appservice_token }}"
  61. hs_token: "{{ matrix_appservice_draupnir_for_all_homeserver_token }}"
  62. url: "{{ matrix_appservice_draupnir_for_all_appservice_url }}:{{ matrix_appservice_draupnir_for_all_appservice_port }}"
  63. sender_localpart: draupnir-main
  64. namespaces:
  65. users:
  66. - exclusive: true
  67. regex: '@{{ matrix_appservice_draupnir_for_all_user_prefix }}*'
  68. rate_limited: false
  69. matrix_appservice_draupnir_for_all_registration: "{{ matrix_appservice_draupnir_for_all_registration_yaml | from_yaml }}"
  70. matrix_appservice_draupnir_for_all_configuration_appservice: "{{ lookup('template', 'templates/production-appservice.yaml.j2') | from_yaml }}"
  71. # Default configuration template which covers the generic use case.
  72. # You can customize it by controlling the various variables inside it.
  73. #
  74. # For a more advanced customization, you can extend the default (see `matrix_appservice_draupnir_for_all_configuration_extension_yaml`)
  75. # or completely replace this variable with your own template.
  76. matrix_appservice_draupnir_for_all_configuration_yaml: "{{ lookup('template', 'templates/production-bots.yaml.j2') }}"
  77. matrix_appservice_draupnir_for_all_configuration_extension_yaml: |
  78. # Your custom YAML configuration goes here.
  79. # This configuration extends the default starting configuration (`matrix_appservice_draupnir_for_all_configuration_yaml`).
  80. #
  81. # You can override individual variables from the default configuration, or introduce new ones.
  82. #
  83. # If you need something more special, you can take full control by
  84. # completely redefining `matrix_appservice_draupnir_for_all_configuration_yaml`.
  85. 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 {} }}"
  86. # Holds the final configuration (a combination of the default and its extension).
  87. # You most likely don't need to touch this variable. Instead, see `matrix_appservice_draupnir_for_all_configuration_yaml`.
  88. 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) }}"