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

242 строки
11 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  4. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  5. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  6. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  7. #
  8. # SPDX-License-Identifier: AGPL-3.0-or-later
  9. ---
  10. # Honoroit is a helpdesk bot
  11. # Project source code URL: https://github.com/etkecc/honoroit
  12. matrix_bot_honoroit_enabled: true
  13. # The hostname at which Honoroit is served.
  14. matrix_bot_honoroit_hostname: ''
  15. # The path at which Honoroit is exposed.
  16. # This value must either be `/` or not end with a slash (e.g. `/honoroit`).
  17. matrix_bot_honoroit_path_prefix: /
  18. # The path at which Honoroit will expose metrics
  19. # This value must either be `/` or not end with a slash (e.g. `/metrics`).
  20. matrix_bot_honoroit_metrics_path: /metrics
  21. matrix_bot_honoroit_container_image_self_build: false
  22. matrix_bot_honoroit_container_repo: "https://github.com/etkecc/honoroit.git"
  23. matrix_bot_honoroit_container_repo_version: "{{ matrix_bot_honoroit_version }}"
  24. matrix_bot_honoroit_container_src_files_path: "{{ matrix_base_data_path }}/honoroit/docker-src"
  25. # renovate: datasource=docker depName=ghcr.io/etkecc/honoroit
  26. matrix_bot_honoroit_version: v0.9.30
  27. matrix_bot_honoroit_container_image: "{{ matrix_bot_honoroit_container_image_registry_prefix }}etkecc/honoroit:{{ matrix_bot_honoroit_version }}"
  28. matrix_bot_honoroit_container_image_registry_prefix: "{{ 'localhost/' if matrix_bot_honoroit_container_image_self_build else matrix_bot_honoroit_container_image_registry_prefix_upstream }}"
  29. matrix_bot_honoroit_container_image_registry_prefix_upstream: "{{ matrix_bot_honoroit_container_image_registry_prefix_upstream_default }}"
  30. matrix_bot_honoroit_container_image_registry_prefix_upstream_default: "ghcr.io/"
  31. matrix_bot_honoroit_base_path: "{{ matrix_base_data_path }}/honoroit"
  32. matrix_bot_honoroit_config_path: "{{ matrix_bot_honoroit_base_path }}/config"
  33. matrix_bot_honoroit_data_path: "{{ matrix_bot_honoroit_base_path }}/data"
  34. matrix_bot_honoroit_data_store_path: "{{ matrix_bot_honoroit_data_path }}/store"
  35. # The TCP port Honoroit listens on inside the container.
  36. matrix_bot_honoroit_container_port: 8080
  37. # The base container network. It will be auto-created by this role if it doesn't exist already.
  38. matrix_bot_honoroit_container_network: ""
  39. # A list of additional container networks that the container would be connected to.
  40. # The role does not create these networks, so make sure they already exist.
  41. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  42. matrix_bot_honoroit_container_additional_networks: []
  43. # matrix_bot_honoroit_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  44. # See `../templates/labels.j2` for details.
  45. #
  46. # To inject your own other container labels, see `matrix_bot_honoroit_container_labels_additional_labels`.
  47. matrix_bot_honoroit_container_labels_traefik_enabled: true
  48. matrix_bot_honoroit_container_labels_traefik_docker_network: "{{ matrix_bot_honoroit_container_network }}"
  49. matrix_bot_honoroit_container_labels_traefik_hostname: "{{ matrix_bot_honoroit_hostname }}"
  50. # The path prefix must either be `/` or not end with a slash (e.g. `/honoroit`).
  51. matrix_bot_honoroit_container_labels_traefik_path_prefix: "{{ matrix_bot_honoroit_path_prefix }}"
  52. matrix_bot_honoroit_container_labels_traefik_metrics_path: "{{ '' if matrix_bot_honoroit_path_prefix == '/' else matrix_bot_honoroit_path_prefix }}{{ matrix_bot_honoroit_metrics_path }}"
  53. matrix_bot_honoroit_container_labels_traefik_metrics_rule: "Host(`{{ matrix_bot_honoroit_container_labels_traefik_hostname }}`) && Path(`{{ matrix_bot_honoroit_container_labels_traefik_metrics_path }}`)"
  54. matrix_bot_honoroit_container_labels_traefik_priority: 0
  55. matrix_bot_honoroit_container_labels_traefik_entrypoints: web-secure
  56. matrix_bot_honoroit_container_labels_traefik_tls: "{{ matrix_bot_honoroit_container_labels_traefik_entrypoints != 'web' }}"
  57. matrix_bot_honoroit_container_labels_traefik_tls_certResolver: default # noqa var-naming
  58. # Controls which additional headers to attach to all HTTP responses.
  59. # To add your own headers, use `matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom`
  60. matrix_bot_honoroit_container_labels_traefik_additional_response_headers: "{{ matrix_bot_honoroit_container_labels_traefik_additional_response_headers_auto | combine(matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom) }}"
  61. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_auto: {}
  62. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom: {}
  63. # matrix_bot_honoroit_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  64. # See `../templates/labels.j2` for details.
  65. #
  66. # Example:
  67. # matrix_bot_honoroit_container_labels_additional_labels: |
  68. # my.label=1
  69. # another.label="here"
  70. matrix_bot_honoroit_container_labels_additional_labels: ''
  71. # A list of extra arguments to pass to the container
  72. matrix_bot_honoroit_container_extra_arguments: []
  73. # List of systemd services that matrix-bot-honoroit.service depends on
  74. matrix_bot_honoroit_systemd_required_services_list: "{{ matrix_bot_honoroit_systemd_required_services_list_default + matrix_bot_honoroit_systemd_required_services_list_auto + matrix_bot_honoroit_systemd_required_services_list_custom }}"
  75. matrix_bot_honoroit_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  76. matrix_bot_honoroit_systemd_required_services_list_auto: []
  77. matrix_bot_honoroit_systemd_required_services_list_custom: []
  78. # List of systemd services that matrix-bot-honoroit.service wants
  79. matrix_bot_honoroit_systemd_wanted_services_list: []
  80. # Database-related configuration fields.
  81. #
  82. # To use SQLite, stick to these defaults.
  83. #
  84. # To use Postgres:
  85. # - change the engine (`matrix_bot_honoroit_database_engine: 'postgres'`)
  86. # - adjust your database credentials via the `matrix_bot_honoroit_database_*` variables
  87. matrix_bot_honoroit_database_engine: 'sqlite'
  88. matrix_bot_honoroit_sqlite_database_path_local: "{{ matrix_bot_honoroit_data_path }}/bot.db"
  89. matrix_bot_honoroit_sqlite_database_path_in_container: "/data/bot.db"
  90. matrix_bot_honoroit_database_username: 'honoroit'
  91. matrix_bot_honoroit_database_password: 'some-password'
  92. matrix_bot_honoroit_database_hostname: ''
  93. matrix_bot_honoroit_database_port: 5432
  94. matrix_bot_honoroit_database_name: 'honoroit'
  95. matrix_bot_honoroit_database_sslmode: disable
  96. matrix_bot_honoroit_database_connection_string: 'postgres://{{ matrix_bot_honoroit_database_username }}:{{ matrix_bot_honoroit_database_password }}@{{ matrix_bot_honoroit_database_hostname }}:{{ matrix_bot_honoroit_database_port }}/{{ matrix_bot_honoroit_database_name }}?sslmode={{ matrix_bot_honoroit_database_sslmode }}'
  97. matrix_bot_honoroit_storage_database: "{{ {
  98. 'sqlite': matrix_bot_honoroit_sqlite_database_path_in_container,
  99. 'postgres': matrix_bot_honoroit_database_connection_string,
  100. }[matrix_bot_honoroit_database_engine] }}"
  101. matrix_bot_honoroit_database_dialect: "{{ {
  102. 'sqlite': 'sqlite3',
  103. 'postgres': 'postgres',
  104. }[matrix_bot_honoroit_database_engine] }}"
  105. # The bot's username. This user needs to be created manually beforehand.
  106. # Also see `matrix_bot_honoroit_password`.
  107. matrix_bot_honoroit_login: "honoroit"
  108. # The password that the bot uses to authenticate.
  109. matrix_bot_honoroit_password: ''
  110. matrix_bot_honoroit_homeserver: ""
  111. # The room ID where bot will create threads
  112. matrix_bot_honoroit_roomid: ''
  113. # Command prefix
  114. matrix_bot_honoroit_prefix: ''
  115. # Sentry DSN
  116. matrix_bot_honoroit_sentry: ''
  117. # Log level
  118. matrix_bot_honoroit_loglevel: ''
  119. # /metrics basic auth login
  120. matrix_bot_honoroit_auth_metrics_login: ''
  121. # /metrics basic auth password
  122. matrix_bot_honoroit_auth_metrics_password: ''
  123. # /metrics basic auth allowed IPs
  124. matrix_bot_honoroit_auth_metrics_ips: []
  125. # Optional healthchecks.io integration
  126. matrix_bot_honoroit_healthchecks_url: 'https://hc-ping.com'
  127. matrix_bot_honoroit_healthchecks_uuid: ''
  128. matrix_bot_honoroit_healthchecks_duration: 60 # in seconds
  129. # Optional Redmine integration
  130. matrix_bot_honoroit_redmine_host: '' # e.g. https://redmine.example.com
  131. matrix_bot_honoroit_redmine_apikey: ''
  132. matrix_bot_honoroit_redmine_project: '' # project identifier (e.g. 'myproject')
  133. matrix_bot_honoroit_redmine_tracker_id: '' # tracker ID (e.g. 1)
  134. matrix_bot_honoroit_redmine_new_status_id: '' # new status ID (e.g. 1)
  135. matrix_bot_honoroit_redmine_in_progress_status_id: '' # in progress status ID (e.g. 2)
  136. matrix_bot_honoroit_redmine_done_status_id: '' # done status ID (e.g. 3)
  137. # A list of whitelisted users allowed to use/invite a Honoroit bot
  138. # If not defined, everyone is allowed.
  139. # Example set of rules:
  140. # matrix_bot_honoroit_allowedusers:
  141. # - @alice:example.com
  142. # - @bob:example.com
  143. # - @bot.*:example.com
  144. # - @*:example.net
  145. matrix_bot_honoroit_allowedusers:
  146. - "@*:*"
  147. # Max items in cache
  148. matrix_bot_honoroit_cachesize: ''
  149. # List of ignored room IDs
  150. matrix_bot_honoroit_ignoredrooms: []
  151. # If enabled, the bot will not send a warning message in an encrypted room
  152. matrix_bot_honoroit_no_encryption_warning: false
  153. # Ignore messages outside of threads
  154. matrix_bot_honoroit_ignorenothread: false
  155. # Text prefix: open
  156. matrix_bot_honoroit_text_prefix_open: ''
  157. # Text prefix: done
  158. matrix_bot_honoroit_text_prefix_done: ''
  159. # Text: no encryption
  160. matrix_bot_honoroit_text_noencryption: ''
  161. # Text: greetings
  162. matrix_bot_honoroit_text_greetings: ''
  163. # Text: invite
  164. matrix_bot_honoroit_text_invite: ''
  165. # Text: join
  166. matrix_bot_honoroit_text_join: ''
  167. # Text: leave
  168. matrix_bot_honoroit_text_leave: ''
  169. # Text: error
  170. matrix_bot_honoroit_text_error: ''
  171. # Text: empty room
  172. matrix_bot_honoroit_text_emptyroom: ''
  173. # Text: done
  174. matrix_bot_honoroit_text_done: ''
  175. # Additional environment variables to pass to the Honoroit container
  176. #
  177. # Example:
  178. # matrix_bot_honoroit_environment_variables_extension: |
  179. # HONOROIT_TEXT_DONE=Done
  180. matrix_bot_honoroit_environment_variables_extension: ''
  181. # matrix_bot_honoroit_restart_necessary controls whether the service
  182. # will be restarted (when true) or merely started (when false) by the
  183. # systemd service manager role (when conditional restart is enabled).
  184. #
  185. # This value is automatically computed during installation based on whether
  186. # any configuration files, the systemd service file, or the container image changed.
  187. # The default of `false` means "no restart needed" — appropriate when the role's
  188. # installation tasks haven't run (e.g., due to --tags skipping them).
  189. matrix_bot_honoroit_restart_necessary: false