Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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