Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

224 líneas
9.4 KiB

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