Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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