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.
 
 

108 lines
4.4 KiB

  1. # matrix-appservice-slack is a Matrix <-> Slack bridge
  2. # See: https://github.com/matrix-org/matrix-appservice-slack
  3. matrix_appservice_slack_enabled: true
  4. matrix_appservice_slack_docker_image: "cadair/matrix-appservice-slack:cadair"
  5. matrix_appservice_slack_docker_image_force_pull: "{{ matrix_appservice_slack_docker_image.endswith(':latest') }}"
  6. matrix_appservice_slack_base_path: "{{ matrix_base_data_path }}/appservice-slack"
  7. matrix_appservice_slack_config_path: "{{ matrix_appservice_slack_base_path }}/config"
  8. matrix_appservice_slack_data_path: "{{ matrix_appservice_slack_base_path }}/data"
  9. matrix_appservice_slack_public_endpoint: /appservice-slack
  10. matrix_appservice_slack_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_slack_public_endpoint }}"
  11. # Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
  12. matrix_appservice_slack_control_room_id: ''
  13. matrix_appservice_slack_bot_name: 'slackbot'
  14. matrix_appservice_slack_user_prefix: 'slack_'
  15. # Controls the SLACK_PORT and MATRIX_PORT of the installation
  16. matrix_appservice_slack_matrix_port: 9004
  17. matrix_appservice_slack_slack_port: 9003
  18. # Controls whether the appservice-slack container exposes its HTTP port (tcp/9003 in the container).
  19. #
  20. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  21. matrix_appservice_slack_container_http_host_bind_port: ''
  22. matrix_appservice_slack_homeserver_media_url: "matrix.{{ matrix_domain }}"
  23. matrix_appservice_slack_homeserver_url: "http://matrix-synapse:8008"
  24. matrix_appservice_slack_homeserver_domain: "{{ matrix_domain }}"
  25. matrix_appservice_slack_appservice_url: 'http://matrix-appservice-slack'
  26. # A list of extra arguments to pass to the container
  27. matrix_appservice_slack_container_extra_arguments: []
  28. # List of systemd services that matrix-appservice-slack.service depends on.
  29. matrix_appservice_slack_systemd_required_services_list: ['docker.service']
  30. # List of systemd services that matrix-appservice-slack.service wants
  31. matrix_appservice_slack_systemd_wanted_services_list: []
  32. matrix_appservice_slack_appservice_token: ''
  33. matrix_appservice_slack_homeserver_token: ''
  34. matrix_appservice_slack_id_token: ''
  35. matrix_appservice_slack_configuration_yaml: |
  36. slack_hook_port: {{ matrix_appservice_slack_slack_port }}
  37. inbound_uri_prefix: "{{ matrix_appservice_slack_inbound_uri_prefix }}"
  38. bot_username: "{{ matrix_appservice_slack_bot_name }}"
  39. username_prefix: {{ matrix_appservice_slack_user_prefix }}
  40. homeserver:
  41. media_url: "{{ matrix_appservice_slack_homeserver_media_url }}"
  42. url: "{{ matrix_appservice_slack_homeserver_url }}"
  43. server_name: "{{ matrix_domain }}"
  44. dbdir: "/data"
  45. matrix_admin_room: "{{ matrix_appservice_slack_control_room_id }}"
  46. matrix_appservice_slack_configuration_extension_yaml: |
  47. #slack_hook_port: 9898
  48. #inbound_uri_prefix: "https://my.server.here:9898/"
  49. #bot_username: "slackbot"
  50. #username_prefix: "slack_"
  51. # Optional
  52. #slack_master_token: "abc-123-def"
  53. # Optional
  54. #matrix_admin_room: "!aBcDeF:matrix.org"
  55. #homeserver:
  56. # url: http://localhost:8008
  57. # server_name: my.server
  58. # Optional
  59. #tls:
  60. # key_file: /path/to/tls.key
  61. # crt_file: /path/to/tls.crt
  62. #logging:
  63. # console: "info"
  64. # files:
  65. # - "./debug.log": "info"
  66. #- "./error.log": "error"
  67. matrix_appservice_slack_configuration_extension: "{{ matrix_appservice_slack_configuration_extension_yaml|from_yaml if matrix_appservice_slack_configuration_extension_yaml|from_yaml else {} }}"
  68. matrix_appservice_slack_configuration: "{{ matrix_appservice_slack_configuration_yaml|from_yaml|combine(matrix_appservice_slack_configuration_extension, recursive=True) }}"
  69. matrix_appservice_slack_registration_yaml: |
  70. id: "{{ matrix_appservice_slack_id_token }}"
  71. as_token: "{{ matrix_appservice_slack_appservice_token }}"
  72. hs_token: "{{ matrix_appservice_slack_homeserver_token }}"
  73. namespaces:
  74. users:
  75. - exclusive: true
  76. regex: '@{{ matrix_appservice_slack_user_prefix }}.*'
  77. aliases:
  78. - exclusive: false
  79. regex: '#{{ matrix_appservice_slack_user_prefix }}.*'
  80. rooms: []
  81. url: "{{matrix_appservice_slack_appservice_url}}:{{ matrix_appservice_slack_matrix_port }}"
  82. sender_localpart: slackbot
  83. rate_limited: true
  84. protocols: null
  85. matrix_appservice_slack_registration: "{{ matrix_appservice_slack_registration_yaml|from_yaml }}"