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.
 
 

225 lines
9.7 KiB

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