Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

211 lines
8.7 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.21
  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: ""
  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: "{{ matrix_bot_honoroit_systemd_required_services_list_default + matrix_bot_honoroit_systemd_required_services_list_auto + matrix_bot_honoroit_systemd_required_services_list_custom }}"
  72. matrix_bot_honoroit_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  73. matrix_bot_honoroit_systemd_required_services_list_auto: []
  74. matrix_bot_honoroit_systemd_required_services_list_custom: []
  75. # List of systemd services that matrix-bot-honoroit.service wants
  76. matrix_bot_honoroit_systemd_wanted_services_list: []
  77. # Database-related configuration fields.
  78. #
  79. # To use SQLite, stick to these defaults.
  80. #
  81. # To use Postgres:
  82. # - change the engine (`matrix_bot_honoroit_database_engine: 'postgres'`)
  83. # - adjust your database credentials via the `matrix_bot_honoroit_database_*` variables
  84. matrix_bot_honoroit_database_engine: 'sqlite'
  85. matrix_bot_honoroit_sqlite_database_path_local: "{{ matrix_bot_honoroit_data_path }}/bot.db"
  86. matrix_bot_honoroit_sqlite_database_path_in_container: "/data/bot.db"
  87. matrix_bot_honoroit_database_username: 'honoroit'
  88. matrix_bot_honoroit_database_password: 'some-password'
  89. matrix_bot_honoroit_database_hostname: ''
  90. matrix_bot_honoroit_database_port: 5432
  91. matrix_bot_honoroit_database_name: 'honoroit'
  92. matrix_bot_honoroit_database_sslmode: disable
  93. 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 }}'
  94. matrix_bot_honoroit_storage_database: "{{
  95. {
  96. 'sqlite': matrix_bot_honoroit_sqlite_database_path_in_container,
  97. 'postgres': matrix_bot_honoroit_database_connection_string,
  98. }[matrix_bot_honoroit_database_engine]
  99. }}"
  100. matrix_bot_honoroit_database_dialect: "{{
  101. {
  102. 'sqlite': 'sqlite3',
  103. 'postgres': 'postgres',
  104. }[matrix_bot_honoroit_database_engine]
  105. }}"
  106. # The bot's username. This user needs to be created manually beforehand.
  107. # Also see `matrix_bot_honoroit_password`.
  108. matrix_bot_honoroit_login: "honoroit"
  109. # The password that the bot uses to authenticate.
  110. matrix_bot_honoroit_password: ''
  111. matrix_bot_honoroit_homeserver: ""
  112. # The room ID where bot will create threads
  113. matrix_bot_honoroit_roomid: ''
  114. # Command prefix
  115. matrix_bot_honoroit_prefix: ''
  116. # Sentry DSN
  117. matrix_bot_honoroit_sentry: ''
  118. # Log level
  119. matrix_bot_honoroit_loglevel: ''
  120. # Disable encryption
  121. matrix_bot_honoroit_noencryption: false
  122. # A list of whitelisted users allowed to use/invite honoroit
  123. # If not defined, everyone is allowed.
  124. # Example set of rules:
  125. # matrix_bot_honoroit_allowedusers:
  126. # - @someone:example.com
  127. # - @another:example.com
  128. # - @bot.*:example.com
  129. # - @*:another.com
  130. matrix_bot_honoroit_allowedusers:
  131. - "@*:*"
  132. # Max items in cache
  133. matrix_bot_honoroit_cachesize: ''
  134. # List of ignored room IDs
  135. matrix_bot_honoroit_ignoredrooms: []
  136. # Ignore messages outside of threads
  137. matrix_bot_honoroit_ignorenothread: false
  138. # Text prefix: open
  139. matrix_bot_honoroit_text_prefix_open: ''
  140. # Text prefix: done
  141. matrix_bot_honoroit_text_prefix_done: ''
  142. # Text: no encryption
  143. matrix_bot_honoroit_text_noencryption: ''
  144. # Text: greetings
  145. matrix_bot_honoroit_text_greetings: ''
  146. # Text: invite
  147. matrix_bot_honoroit_text_invite: ''
  148. # Text: join
  149. matrix_bot_honoroit_text_join: ''
  150. # Text: leave
  151. matrix_bot_honoroit_text_leave: ''
  152. # Text: error
  153. matrix_bot_honoroit_text_error: ''
  154. # Text: empty room
  155. matrix_bot_honoroit_text_emptyroom: ''
  156. # Text: done
  157. matrix_bot_honoroit_text_done: ''
  158. # Additional environment variables to pass to the Honoroit container
  159. #
  160. # Example:
  161. # matrix_bot_honoroit_environment_variables_extension: |
  162. # HONOROIT_TEXT_DONE=Done
  163. matrix_bot_honoroit_environment_variables_extension: ''