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.
 
 

192 lines
7.6 KiB

  1. ---
  2. # honoroit is a helpdesk bot
  3. # Project source code URL: https://gitlab.com/etke.cc/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. matrix_bot_honoroit_container_image_self_build: false
  11. matrix_bot_honoroit_docker_repo: "https://gitlab.com/etke.cc/honoroit.git"
  12. matrix_bot_honoroit_docker_repo_version: "{{ matrix_bot_honoroit_version }}"
  13. matrix_bot_honoroit_docker_src_files_path: "{{ matrix_base_data_path }}/honoroit/docker-src"
  14. matrix_bot_honoroit_version: v0.9.17
  15. matrix_bot_honoroit_docker_image: "{{ matrix_bot_honoroit_docker_image_name_prefix }}etke.cc/honoroit:{{ matrix_bot_honoroit_version }}"
  16. matrix_bot_honoroit_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_honoroit_container_image_self_build else 'registry.gitlab.com/' }}"
  17. matrix_bot_honoroit_docker_image_force_pull: "{{ matrix_bot_honoroit_docker_image.endswith(':latest') }}"
  18. matrix_bot_honoroit_base_path: "{{ matrix_base_data_path }}/honoroit"
  19. matrix_bot_honoroit_config_path: "{{ matrix_bot_honoroit_base_path }}/config"
  20. matrix_bot_honoroit_data_path: "{{ matrix_bot_honoroit_base_path }}/data"
  21. matrix_bot_honoroit_data_store_path: "{{ matrix_bot_honoroit_data_path }}/store"
  22. # The base container network. It will be auto-created by this role if it doesn't exist already.
  23. matrix_bot_honoroit_container_network: matrix-bot-honoroit
  24. # A list of additional container networks that the container would be connected to.
  25. # The role does not create these networks, so make sure they already exist.
  26. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  27. matrix_bot_honoroit_container_additional_networks: []
  28. # matrix_bot_honoroit_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  29. # See `../templates/labels.j2` for details.
  30. #
  31. # To inject your own other container labels, see `matrix_bot_honoroit_container_labels_additional_labels`.
  32. matrix_bot_honoroit_container_labels_traefik_enabled: true
  33. matrix_bot_honoroit_container_labels_traefik_docker_network: "{{ matrix_bot_honoroit_container_network }}"
  34. matrix_bot_honoroit_container_labels_traefik_hostname: "{{ matrix_bot_honoroit_hostname }}"
  35. # The path prefix must either be `/` or not end with a slash (e.g. `/honoroit`).
  36. matrix_bot_honoroit_container_labels_traefik_path_prefix: "{{ matrix_bot_honoroit_path_prefix }}"
  37. matrix_bot_honoroit_container_labels_traefik_rule: "Host(`{{ matrix_bot_honoroit_container_labels_traefik_hostname }}`){% if matrix_bot_honoroit_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_bot_honoroit_container_labels_traefik_path_prefix }}`){% endif %}"
  38. matrix_bot_honoroit_container_labels_traefik_priority: 0
  39. matrix_bot_honoroit_container_labels_traefik_entrypoints: web-secure
  40. matrix_bot_honoroit_container_labels_traefik_tls: "{{ matrix_bot_honoroit_container_labels_traefik_entrypoints != 'web' }}"
  41. matrix_bot_honoroit_container_labels_traefik_tls_certResolver: default # noqa var-naming
  42. # Controls which additional headers to attach to all HTTP responses.
  43. # To add your own headers, use `matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom`
  44. 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) }}"
  45. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_auto: {}
  46. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom: {}
  47. # matrix_bot_honoroit_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  48. # See `../templates/labels.j2` for details.
  49. #
  50. # Example:
  51. # matrix_bot_honoroit_container_labels_additional_labels: |
  52. # my.label=1
  53. # another.label="here"
  54. matrix_bot_honoroit_container_labels_additional_labels: ''
  55. # A list of extra arguments to pass to the container
  56. matrix_bot_honoroit_container_extra_arguments: []
  57. # List of systemd services that matrix-bot-honoroit.service depends on
  58. matrix_bot_honoroit_systemd_required_services_list: ['docker.service']
  59. # List of systemd services that matrix-bot-honoroit.service wants
  60. matrix_bot_honoroit_systemd_wanted_services_list: []
  61. # Database-related configuration fields.
  62. #
  63. # To use SQLite, stick to these defaults.
  64. #
  65. # To use Postgres:
  66. # - change the engine (`matrix_bot_honoroit_database_engine: 'postgres'`)
  67. # - adjust your database credentials via the `matrix_bot_honoroit_database_*` variables
  68. matrix_bot_honoroit_database_engine: 'sqlite'
  69. matrix_bot_honoroit_sqlite_database_path_local: "{{ matrix_bot_honoroit_data_path }}/bot.db"
  70. matrix_bot_honoroit_sqlite_database_path_in_container: "/data/bot.db"
  71. matrix_bot_honoroit_database_username: 'honoroit'
  72. matrix_bot_honoroit_database_password: 'some-password'
  73. matrix_bot_honoroit_database_hostname: ''
  74. matrix_bot_honoroit_database_port: 5432
  75. matrix_bot_honoroit_database_name: 'honoroit'
  76. 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=disable'
  77. matrix_bot_honoroit_storage_database: "{{
  78. {
  79. 'sqlite': matrix_bot_honoroit_sqlite_database_path_in_container,
  80. 'postgres': matrix_bot_honoroit_database_connection_string,
  81. }[matrix_bot_honoroit_database_engine]
  82. }}"
  83. matrix_bot_honoroit_database_dialect: "{{
  84. {
  85. 'sqlite': 'sqlite3',
  86. 'postgres': 'postgres',
  87. }[matrix_bot_honoroit_database_engine]
  88. }}"
  89. # The bot's username. This user needs to be created manually beforehand.
  90. # Also see `matrix_bot_honoroit_password`.
  91. matrix_bot_honoroit_login: "honoroit"
  92. # The password that the bot uses to authenticate.
  93. matrix_bot_honoroit_password: ''
  94. matrix_bot_honoroit_homeserver: "{{ matrix_homeserver_container_url }}"
  95. # The room ID where bot will create threads
  96. matrix_bot_honoroit_roomid: ''
  97. # Command prefix
  98. matrix_bot_honoroit_prefix: ''
  99. # Sentry DSN
  100. matrix_bot_honoroit_sentry: ''
  101. # Log level
  102. matrix_bot_honoroit_loglevel: ''
  103. # Disable encryption
  104. matrix_bot_honoroit_noencryption: false
  105. # A list of whitelisted users allowed to use/invite honoroit
  106. # If not defined, everyone is allowed.
  107. # Example set of rules:
  108. # matrix_bot_honoroit_allowedusers:
  109. # - @someone:example.com
  110. # - @another:example.com
  111. # - @bot.*:example.com
  112. # - @*:another.com
  113. matrix_bot_honoroit_allowedusers:
  114. - "@*:*"
  115. # Max items in cache
  116. matrix_bot_honoroit_cachesize: ''
  117. # List of ignored room IDs
  118. matrix_bot_honoroit_ignoredrooms: []
  119. # Ignore messages outside of threads
  120. matrix_bot_honoroit_ignorenothread: false
  121. # Text prefix: open
  122. matrix_bot_honoroit_text_prefix_open: ''
  123. # Text prefix: done
  124. matrix_bot_honoroit_text_prefix_done: ''
  125. # Text: no encryption
  126. matrix_bot_honoroit_text_noencryption: ''
  127. # Text: greetings
  128. matrix_bot_honoroit_text_greetings: ''
  129. # Text: invite
  130. matrix_bot_honoroit_text_invite: ''
  131. # Text: join
  132. matrix_bot_honoroit_text_join: ''
  133. # Text: leave
  134. matrix_bot_honoroit_text_leave: ''
  135. # Text: error
  136. matrix_bot_honoroit_text_error: ''
  137. # Text: empty room
  138. matrix_bot_honoroit_text_emptyroom: ''
  139. # Text: done
  140. matrix_bot_honoroit_text_done: ''
  141. # Additional environment variables to pass to the Honoroit container
  142. #
  143. # Example:
  144. # matrix_bot_honoroit_environment_variables_extension: |
  145. # HONOROIT_TEXT_DONE=Done
  146. matrix_bot_honoroit_environment_variables_extension: ''