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.
 
 

206 líneas
8.2 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. # 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://gitlab.com/etke.cc/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. matrix_bot_honoroit_version: v0.9.17
  18. matrix_bot_honoroit_docker_image: "{{ matrix_bot_honoroit_docker_image_name_prefix }}etke.cc/honoroit:{{ matrix_bot_honoroit_version }}"
  19. matrix_bot_honoroit_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_honoroit_container_image_self_build else 'registry.gitlab.com/' }}"
  20. matrix_bot_honoroit_docker_image_force_pull: "{{ matrix_bot_honoroit_docker_image.endswith(':latest') }}"
  21. matrix_bot_honoroit_base_path: "{{ matrix_base_data_path }}/honoroit"
  22. matrix_bot_honoroit_config_path: "{{ matrix_bot_honoroit_base_path }}/config"
  23. matrix_bot_honoroit_data_path: "{{ matrix_bot_honoroit_base_path }}/data"
  24. matrix_bot_honoroit_data_store_path: "{{ matrix_bot_honoroit_data_path }}/store"
  25. # The base container network. It will be auto-created by this role if it doesn't exist already.
  26. matrix_bot_honoroit_container_network: matrix-bot-honoroit
  27. # A list of additional container networks that the container would be connected to.
  28. # The role does not create these networks, so make sure they already exist.
  29. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  30. matrix_bot_honoroit_container_additional_networks: []
  31. # enable basic auth for metrics
  32. matrix_bot_honoroit_basicauth_enabled: false
  33. # temporary file name on the host that runs ansible
  34. matrix_bot_honoroit_basicauth_file: "/tmp/matrix_bot_honoroit_htpasswd"
  35. # username
  36. matrix_bot_honoroit_basicauth_user: ''
  37. # password
  38. matrix_bot_honoroit_basicauth_password: ''
  39. # matrix_bot_honoroit_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  40. # See `../templates/labels.j2` for details.
  41. #
  42. # To inject your own other container labels, see `matrix_bot_honoroit_container_labels_additional_labels`.
  43. matrix_bot_honoroit_container_labels_traefik_enabled: true
  44. matrix_bot_honoroit_container_labels_traefik_docker_network: "{{ matrix_bot_honoroit_container_network }}"
  45. matrix_bot_honoroit_container_labels_traefik_hostname: "{{ matrix_bot_honoroit_hostname }}"
  46. # The path prefix must either be `/` or not end with a slash (e.g. `/honoroit`).
  47. matrix_bot_honoroit_container_labels_traefik_path_prefix: "{{ matrix_bot_honoroit_path_prefix }}"
  48. 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 }}"
  49. 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 }}`)"
  50. matrix_bot_honoroit_container_labels_traefik_priority: 0
  51. matrix_bot_honoroit_container_labels_traefik_entrypoints: web-secure
  52. matrix_bot_honoroit_container_labels_traefik_tls: "{{ matrix_bot_honoroit_container_labels_traefik_entrypoints != 'web' }}"
  53. matrix_bot_honoroit_container_labels_traefik_tls_certResolver: default # noqa var-naming
  54. # Controls which additional headers to attach to all HTTP responses.
  55. # To add your own headers, use `matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom`
  56. 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) }}"
  57. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_auto: {}
  58. matrix_bot_honoroit_container_labels_traefik_additional_response_headers_custom: {}
  59. # matrix_bot_honoroit_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  60. # See `../templates/labels.j2` for details.
  61. #
  62. # Example:
  63. # matrix_bot_honoroit_container_labels_additional_labels: |
  64. # my.label=1
  65. # another.label="here"
  66. matrix_bot_honoroit_container_labels_additional_labels: ''
  67. # A list of extra arguments to pass to the container
  68. matrix_bot_honoroit_container_extra_arguments: []
  69. # List of systemd services that matrix-bot-honoroit.service depends on
  70. matrix_bot_honoroit_systemd_required_services_list: ['docker.service']
  71. # List of systemd services that matrix-bot-honoroit.service wants
  72. matrix_bot_honoroit_systemd_wanted_services_list: []
  73. # Database-related configuration fields.
  74. #
  75. # To use SQLite, stick to these defaults.
  76. #
  77. # To use Postgres:
  78. # - change the engine (`matrix_bot_honoroit_database_engine: 'postgres'`)
  79. # - adjust your database credentials via the `matrix_bot_honoroit_database_*` variables
  80. matrix_bot_honoroit_database_engine: 'sqlite'
  81. matrix_bot_honoroit_sqlite_database_path_local: "{{ matrix_bot_honoroit_data_path }}/bot.db"
  82. matrix_bot_honoroit_sqlite_database_path_in_container: "/data/bot.db"
  83. matrix_bot_honoroit_database_username: 'honoroit'
  84. matrix_bot_honoroit_database_password: 'some-password'
  85. matrix_bot_honoroit_database_hostname: ''
  86. matrix_bot_honoroit_database_port: 5432
  87. matrix_bot_honoroit_database_name: 'honoroit'
  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=disable'
  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: "{{ matrix_homeserver_container_url }}"
  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. # Disable encryption
  116. matrix_bot_honoroit_noencryption: false
  117. # A list of whitelisted users allowed to use/invite honoroit
  118. # If not defined, everyone is allowed.
  119. # Example set of rules:
  120. # matrix_bot_honoroit_allowedusers:
  121. # - @someone:example.com
  122. # - @another:example.com
  123. # - @bot.*:example.com
  124. # - @*:another.com
  125. matrix_bot_honoroit_allowedusers:
  126. - "@*:*"
  127. # Max items in cache
  128. matrix_bot_honoroit_cachesize: ''
  129. # List of ignored room IDs
  130. matrix_bot_honoroit_ignoredrooms: []
  131. # Ignore messages outside of threads
  132. matrix_bot_honoroit_ignorenothread: false
  133. # Text prefix: open
  134. matrix_bot_honoroit_text_prefix_open: ''
  135. # Text prefix: done
  136. matrix_bot_honoroit_text_prefix_done: ''
  137. # Text: no encryption
  138. matrix_bot_honoroit_text_noencryption: ''
  139. # Text: greetings
  140. matrix_bot_honoroit_text_greetings: ''
  141. # Text: invite
  142. matrix_bot_honoroit_text_invite: ''
  143. # Text: join
  144. matrix_bot_honoroit_text_join: ''
  145. # Text: leave
  146. matrix_bot_honoroit_text_leave: ''
  147. # Text: error
  148. matrix_bot_honoroit_text_error: ''
  149. # Text: empty room
  150. matrix_bot_honoroit_text_emptyroom: ''
  151. # Text: done
  152. matrix_bot_honoroit_text_done: ''
  153. # Additional environment variables to pass to the Honoroit container
  154. #
  155. # Example:
  156. # matrix_bot_honoroit_environment_variables_extension: |
  157. # HONOROIT_TEXT_DONE=Done
  158. matrix_bot_honoroit_environment_variables_extension: ''