Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

180 linhas
9.8 KiB

  1. ---
  2. # matrix-appservice-slack is a Matrix <-> Slack bridge
  3. # Project source code URL: https://github.com/matrix-org/matrix-appservice-slack
  4. matrix_appservice_slack_enabled: true
  5. matrix_appservice_slack_scheme: https
  6. matrix_appservice_slack_hostname: ''
  7. matrix_appservice_slack_path_prefix: /appservice-slack
  8. matrix_appservice_slack_container_image_self_build: false
  9. matrix_appservice_slack_docker_repo: "https://github.com/matrix-org/matrix-appservice-slack.git"
  10. matrix_appservice_slack_docker_repo_version: "{{ 'master' if matrix_appservice_slack_version == 'latest' else matrix_appservice_slack_version }}"
  11. matrix_appservice_slack_docker_src_files_path: "{{ matrix_base_data_path }}/appservice-slack/docker-src"
  12. # matrix_appservice_slack_version used to contain the full Docker image tag (e.g. `release-X.X.X`).
  13. # It's a bare version number now. We try to somewhat retain compatibility below.
  14. # renovate: datasource=docker depName=docker.io/matrixdotorg/matrix-appservice-slack
  15. matrix_appservice_slack_version: 2.1.2
  16. matrix_appservice_slack_docker_image: "{{ matrix_container_global_registry_prefix }}matrixdotorg/matrix-appservice-slack:{{ matrix_appservice_slack_docker_image_tag }}"
  17. matrix_appservice_slack_docker_image_tag: "{{ 'latest' if matrix_appservice_slack_version == 'latest' else ('release-' + matrix_appservice_slack_version) }}"
  18. matrix_appservice_slack_docker_image_force_pull: "{{ matrix_appservice_slack_docker_image.endswith(':latest') }}"
  19. matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
  20. matrix_appservice_slack_config_path: "{{ matrix_appservice_slack_base_path }}/config"
  21. matrix_appservice_slack_data_path: "{{ matrix_appservice_slack_base_path }}/data"
  22. matrix_appservice_slack_public_endpoint: "{{ matrix_appservice_slack_path_prefix }}"
  23. matrix_appservice_slack_inbound_uri_prefix: "{{ matrix_appservice_slack_scheme }}://{{ matrix_appservice_slack_hostname }}{{ matrix_appservice_slack_public_endpoint }}"
  24. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  25. matrix_appservice_slack_control_room_id: ''
  26. matrix_appservice_slack_bot_name: 'slackbot'
  27. matrix_appservice_slack_user_prefix: 'slack_'
  28. # Controls the SLACK_PORT and MATRIX_PORT of the installation
  29. matrix_appservice_slack_matrix_port: 9004
  30. matrix_appservice_slack_slack_port: 9003
  31. # Controls whether the appservice-slack container exposes its HTTP port (tcp/9003 in the container).
  32. #
  33. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  34. matrix_appservice_slack_container_http_host_bind_port: ''
  35. matrix_appservice_slack_container_network: ""
  36. matrix_appservice_slack_container_additional_networks: "{{ matrix_appservice_slack_container_additional_networks_auto + matrix_appservice_slack_container_additional_networks_custom }}"
  37. matrix_appservice_slack_container_additional_networks_auto: []
  38. matrix_appservice_slack_container_additional_networks_custom: []
  39. # matrix_appservice_slack_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_appservice_slack_container_labels_additional_labels`.
  43. matrix_appservice_slack_container_labels_traefik_enabled: true
  44. matrix_appservice_slack_container_labels_traefik_docker_network: "{{ matrix_appservice_slack_container_network }}"
  45. matrix_appservice_slack_container_labels_traefik_entrypoints: web-secure
  46. matrix_appservice_slack_container_labels_traefik_tls_certResolver: default # noqa var-naming
  47. # Controls whether labels will be added that expose matrix-appservice-slack's public endpoints
  48. matrix_appservice_slack_container_labels_public_endpoint_enabled: true
  49. matrix_appservice_slack_container_labels_public_endpoint_hostname: "{{ matrix_appservice_slack_hostname }}"
  50. matrix_appservice_slack_container_labels_public_endpoint_prefix: "{{ matrix_appservice_slack_path_prefix }}"
  51. matrix_appservice_slack_container_labels_public_endpoint_traefik_rule: "Host(`{{ matrix_appservice_slack_container_labels_public_endpoint_hostname }}`) && PathPrefix(`{{ matrix_appservice_slack_path_prefix }}`)"
  52. matrix_appservice_slack_container_labels_public_endpoint_traefik_priority: 0
  53. matrix_appservice_slack_container_labels_public_endpoint_traefik_entrypoints: "{{ matrix_appservice_slack_container_labels_traefik_entrypoints }}"
  54. matrix_appservice_slack_container_labels_public_endpoint_traefik_tls: "{{ matrix_appservice_slack_container_labels_public_endpoint_traefik_entrypoints != 'web' }}"
  55. matrix_appservice_slack_container_labels_public_endpoint_traefik_tls_certResolver: "{{ matrix_appservice_slack_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  56. # matrix_appservice_slack_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  57. # See `../templates/labels.j2` for details.
  58. #
  59. # Example:
  60. # matrix_appservice_slack_container_labels_additional_labels: |
  61. # my.label=1
  62. # another.label="here"
  63. matrix_appservice_slack_container_labels_additional_labels: ''
  64. # A list of extra arguments to pass to the container
  65. matrix_appservice_slack_container_extra_arguments: []
  66. # List of systemd services that matrix-appservice-slack.service depends on.
  67. matrix_appservice_slack_systemd_required_services_list: "{{ matrix_appservice_slack_systemd_required_services_list_default + matrix_appservice_slack_systemd_required_services_list_auto + matrix_appservice_slack_systemd_required_services_list_custom }}"
  68. matrix_appservice_slack_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  69. matrix_appservice_slack_systemd_required_services_list_auto: []
  70. matrix_appservice_slack_systemd_required_services_list_custom: []
  71. # List of systemd services that matrix-appservice-slack.service wants
  72. matrix_appservice_slack_systemd_wanted_services_list: []
  73. matrix_appservice_slack_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
  74. matrix_appservice_slack_homeserver_url: ""
  75. matrix_appservice_slack_homeserver_domain: "{{ matrix_domain }}"
  76. matrix_appservice_slack_appservice_url: 'http://matrix-appservice-slack'
  77. matrix_appservice_slack_appservice_token: ''
  78. matrix_appservice_slack_homeserver_token: ''
  79. matrix_appservice_slack_id_token: ''
  80. matrix_appservice_slack_database_engine: nedb
  81. matrix_appservice_slack_database_username: matrix_appservice_slack
  82. matrix_appservice_slack_database_password: 'some-passsword'
  83. matrix_appservice_slack_database_hostname: ''
  84. matrix_appservice_slack_database_port: 5432
  85. matrix_appservice_slack_database_name: matrix_appservice_slack
  86. matrix_appservice_slack_database_sslmode: disable
  87. matrix_appservice_slack_puppeting_enabled: false
  88. matrix_appservice_slack_puppeting_slackapp_client_id: ''
  89. matrix_appservice_slack_puppeting_slackapp_client_secret: ''
  90. matrix_appservice_slack_puppeting_onboard_users: true
  91. matrix_appservice_slack_team_sync_enabled: false
  92. matrix_appservice_slack_team_sync_alias_prefix: 'slack_'
  93. # The name of the container network to use when importing a NeDB database into Postgres.
  94. # For Postgres not working in a container, this can be left empty.
  95. matrix_appservice_slack_database_container_network: ''
  96. # This is just the Postgres connection string, if Postgres is used.
  97. # Naming clashes with `matrix_appservice_slack_database_connectionString` somewhat.
  98. matrix_appservice_slack_database_connection_string: 'postgresql://{{ matrix_appservice_slack_database_username }}:{{ matrix_appservice_slack_database_password }}@{{ matrix_appservice_slack_database_hostname }}:{{ matrix_appservice_slack_database_port }}/{{ matrix_appservice_slack_database_name }}?sslmode={{ matrix_appservice_slack_database_sslmode }}'
  99. # This is what actually goes into `database.connectionString` for the bridge.
  100. matrix_appservice_slack_database_connectionString: |- # noqa var-naming
  101. {{
  102. {
  103. 'nedb': 'nedb:///data',
  104. 'postgres': matrix_appservice_slack_database_connection_string,
  105. }[matrix_appservice_slack_database_engine]
  106. }}
  107. matrix_appservice_slack_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  108. matrix_appservice_slack_configuration_extension_yaml: |
  109. #slack_hook_port: 9898
  110. #inbound_uri_prefix: "https://my.server.here:9898/"
  111. #bot_username: "slackbot"
  112. #username_prefix: "slack_"
  113. # Optional
  114. #slack_master_token: "abc-123-def"
  115. # Optional
  116. #matrix_admin_room: "!qporfwt:example.com"
  117. #homeserver:
  118. # url: http://localhost:{{ matrix_synapse_container_client_api_port }}
  119. # server_name: my.server
  120. # Optional
  121. #tls:
  122. # key_file: /path/to/tls.key
  123. # crt_file: /path/to/tls.crt
  124. #logging:
  125. # console: "info"
  126. # files:
  127. # - "./debug.log": "info"
  128. #- "./error.log": "error"
  129. matrix_appservice_slack_configuration_extension: "{{ matrix_appservice_slack_configuration_extension_yaml | from_yaml if matrix_appservice_slack_configuration_extension_yaml | from_yaml else {} }}"
  130. matrix_appservice_slack_configuration: "{{ matrix_appservice_slack_configuration_yaml | from_yaml | combine(matrix_appservice_slack_configuration_extension, recursive=True) }}"
  131. matrix_appservice_slack_registration_yaml: |
  132. id: "{{ matrix_appservice_slack_id_token }}"
  133. as_token: "{{ matrix_appservice_slack_appservice_token }}"
  134. hs_token: "{{ matrix_appservice_slack_homeserver_token }}"
  135. namespaces:
  136. users:
  137. - exclusive: true
  138. regex: '@{{ matrix_appservice_slack_user_prefix }}.*'
  139. aliases:
  140. - exclusive: false
  141. regex: '#{{ matrix_appservice_slack_user_prefix }}.*'
  142. rooms: []
  143. url: "{{ matrix_appservice_slack_appservice_url }}:{{ matrix_appservice_slack_matrix_port }}"
  144. sender_localpart: slackbot
  145. rate_limited: true
  146. protocols: null
  147. matrix_appservice_slack_registration: "{{ matrix_appservice_slack_registration_yaml | from_yaml }}"