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

99 lines
4.8 KiB

  1. # Mx Puppet Slack is a Matrix <-> Slack bridge
  2. # See: https://github.com/Sorunome/mx-puppet-slack
  3. matrix_mx_puppet_slack_enabled: true
  4. matrix_mx_puppet_slack_container_image_self_build: false
  5. # Controls whether the mx-puppet-slack container exposes its HTTP port (tcp/8432 in the container).
  6. #
  7. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
  8. matrix_mx_puppet_slack_container_http_host_bind_port: ''
  9. matrix_mx_puppet_slack_docker_image: "{{ matrix_mx_puppet_slack_docker_image_name_prefix }}sorunome/mx-puppet-slack:latest"
  10. matrix_mx_puppet_slack_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_slack_container_image_self_build else 'docker.io/' }}"
  11. matrix_mx_puppet_slack_docker_image_force_pull: "{{ matrix_mx_puppet_slack_docker_image.endswith(':latest') }}"
  12. matrix_mx_puppet_slack_base_path: "{{ matrix_base_data_path }}/mx-puppet-slack"
  13. matrix_mx_puppet_slack_config_path: "{{ matrix_mx_puppet_slack_base_path }}/config"
  14. matrix_mx_puppet_slack_data_path: "{{ matrix_mx_puppet_slack_base_path }}/data"
  15. matrix_mx_puppet_slack_docker_src_files_path: "{{ matrix_mx_puppet_slack_base_path }}/docker-src"
  16. matrix_mx_puppet_slack_appservice_port: "8432"
  17. matrix_mx_puppet_slack_homeserver_address: 'http://matrix-synapse:8008'
  18. matrix_mx_puppet_slack_homeserver_domain: '{{ matrix_domain }}'
  19. matrix_mx_puppet_slack_appservice_address: 'http://matrix-mx-puppet-slack:{{ matrix_mx_puppet_slack_appservice_port }}'
  20. matrix_mx_puppet_slack_client_id: ''
  21. matrix_mx_puppet_slack_client_secret: ''
  22. matrix_mx_puppet_slack_redirect_path: '/slack/oauth'
  23. matrix_mx_puppet_slack_redirect_uri: 'https://{{ matrix_server_fqn_matrix }}{{ matrix_mx_puppet_slack_redirect_path }}'
  24. # "@user:server.com" to allow specific user
  25. # "@.*:yourserver.com" to allow users on a specific homeserver
  26. # "@.*" to allow anyone
  27. matrix_mx_puppet_slack_provisioning_whitelist:
  28. - "@.*:{{ matrix_domain|regex_escape }}"
  29. # Leave empty to disable blacklist
  30. # "@user:server.com" disallow a specific user
  31. # "@.*:yourserver.com" disallow users on a specific homeserver
  32. matrix_mx_puppet_slack_provisioning_blacklist: []
  33. # A list of extra arguments to pass to the container
  34. matrix_mx_puppet_slack_container_extra_arguments: []
  35. # List of systemd services that matrix-puppet-slack.service depends on.
  36. matrix_mx_puppet_slack_systemd_required_services_list: ['docker.service']
  37. # List of systemd services that matrix-puppet-slack.service wants
  38. matrix_mx_puppet_slack_systemd_wanted_services_list: []
  39. matrix_mx_puppet_slack_appservice_token: ''
  40. matrix_mx_puppet_slack_homeserver_token: ''
  41. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  42. matrix_mx_puppet_slack_login_shared_secret: ''
  43. # Default configuration template which covers the generic use case.
  44. # You can customize it by controlling the various variables inside it.
  45. #
  46. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_slack_configuration_extension_yaml`)
  47. # or completely replace this variable with your own template.
  48. matrix_mx_puppet_slack_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  49. matrix_mx_puppet_slack_configuration_extension_yaml: |
  50. # Your custom YAML configuration goes here.
  51. # This configuration extends the default starting configuration (`matrix_mx_puppet_slack_configuration_yaml`).
  52. #
  53. # You can override individual variables from the default configuration, or introduce new ones.
  54. #
  55. # If you need something more special, you can take full control by
  56. # completely redefining `matrix_mx_puppet_slack_configuration_yaml`.
  57. matrix_mx_puppet_slack_configuration_extension: "{{ matrix_mx_puppet_slack_configuration_extension_yaml|from_yaml if matrix_mx_puppet_slack_configuration_extension_yaml|from_yaml is mapping else {} }}"
  58. # Holds the final configuration (a combination of the default and its extension).
  59. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_slack_configuration_yaml`.
  60. matrix_mx_puppet_slack_configuration: "{{ matrix_mx_puppet_slack_configuration_yaml|from_yaml|combine(matrix_mx_puppet_slack_configuration_extension, recursive=True) }}"
  61. matrix_mx_puppet_slack_registration_yaml: |
  62. as_token: "{{ matrix_mx_puppet_slack_appservice_token }}"
  63. hs_token: "{{ matrix_mx_puppet_slack_homeserver_token }}"
  64. id: slack-puppet
  65. namespaces:
  66. users:
  67. - exclusive: true
  68. regex: '@_slackpuppet_.*:{{ matrix_mx_puppet_slack_homeserver_domain|regex_escape }}'
  69. rooms: []
  70. aliases:
  71. - exclusive: true
  72. regex: '#_slackpuppet_.*:{{ matrix_mx_puppet_slack_homeserver_domain|regex_escape }}'
  73. protocols: []
  74. rate_limited: false
  75. sender_localpart: _slackpuppet_bot
  76. url: {{ matrix_mx_puppet_slack_appservice_address }}
  77. matrix_mx_puppet_slack_registration: "{{ matrix_mx_puppet_slack_registration_yaml|from_yaml }}"