Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

111 wiersze
5.8 KiB

  1. ---
  2. # Mx Puppet GroupMe is a Matrix <-> GroupMe bridge
  3. # See: https://gitlab.com/robintown/mx-puppet-groupme
  4. matrix_mx_puppet_groupme_enabled: true
  5. matrix_mx_puppet_groupme_container_image_self_build: false
  6. matrix_mx_puppet_groupme_container_image_self_build_repo: "https://gitlab.com/robintown/mx-puppet-groupme"
  7. # Controls whether the mx-puppet-groupme container exposes its HTTP port (tcp/8437 in the container).
  8. #
  9. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8437"), or empty string to not expose.
  10. matrix_mx_puppet_groupme_container_http_host_bind_port: ''
  11. matrix_mx_puppet_groupme_version: latest
  12. matrix_mx_puppet_groupme_docker_image: "{{ matrix_mx_puppet_groupme_docker_image_name_prefix }}xangelix/mx-puppet-groupme:{{ matrix_mx_puppet_groupme_version }}"
  13. matrix_mx_puppet_groupme_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_groupme_container_image_self_build else matrix_container_global_registry_prefix }}"
  14. matrix_mx_puppet_groupme_docker_image_force_pull: "{{ matrix_mx_puppet_groupme_docker_image.endswith(':latest') }}"
  15. matrix_mx_puppet_groupme_base_path: "{{ matrix_base_data_path }}/mx-puppet-groupme"
  16. matrix_mx_puppet_groupme_config_path: "{{ matrix_mx_puppet_groupme_base_path }}/config"
  17. matrix_mx_puppet_groupme_data_path: "{{ matrix_mx_puppet_groupme_base_path }}/data"
  18. matrix_mx_puppet_groupme_docker_src_files_path: "{{ matrix_mx_puppet_groupme_base_path }}/docker-src"
  19. matrix_mx_puppet_groupme_appservice_port: "8437"
  20. matrix_mx_puppet_groupme_homeserver_address: "{{ matrix_homeserver_container_url }}"
  21. matrix_mx_puppet_groupme_homeserver_domain: '{{ matrix_domain }}'
  22. matrix_mx_puppet_groupme_appservice_address: 'http://matrix-mx-puppet-groupme:{{ matrix_mx_puppet_groupme_appservice_port }}'
  23. # "@user:server.com" to allow specific user
  24. # "@.*:yourserver.com" to allow users on a specific homeserver
  25. # "@.*" to allow anyone
  26. matrix_mx_puppet_groupme_provisioning_whitelist:
  27. - "@.*:{{ matrix_domain|regex_escape }}"
  28. # Leave empty to disable blacklist
  29. # "@user:server.com" disallow a specific user
  30. # "@.*:yourserver.com" disallow users on a specific homeserver
  31. matrix_mx_puppet_groupme_provisioning_blacklist: []
  32. # A list of extra arguments to pass to the container
  33. matrix_mx_puppet_groupme_container_extra_arguments: []
  34. # List of systemd services that matrix-puppet-groupme.service depends on.
  35. matrix_mx_puppet_groupme_systemd_required_services_list: ['docker.service']
  36. # List of systemd services that matrix-puppet-groupme.service wants
  37. matrix_mx_puppet_groupme_systemd_wanted_services_list: []
  38. matrix_mx_puppet_groupme_appservice_token: ''
  39. matrix_mx_puppet_groupme_homeserver_token: ''
  40. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  41. matrix_mx_puppet_groupme_login_shared_secret: ''
  42. matrix_mx_puppet_groupme_database_engine: sqlite
  43. matrix_mx_puppet_groupme_sqlite_database_path_local: "{{ matrix_mx_puppet_groupme_data_path }}/database.db"
  44. matrix_mx_puppet_groupme_sqlite_database_path_in_container: "/data/database.db"
  45. matrix_mx_puppet_groupme_database_username: matrix_mx_puppet_groupme
  46. matrix_mx_puppet_groupme_database_password: ~
  47. matrix_mx_puppet_groupme_database_hostname: 'matrix-postgres'
  48. matrix_mx_puppet_groupme_database_port: 5432
  49. matrix_mx_puppet_groupme_database_name: matrix_mx_puppet_groupme
  50. matrix_mx_puppet_groupme_database_connection_string: 'postgresql://{{ matrix_mx_puppet_groupme_database_username }}:{{ matrix_mx_puppet_groupme_database_password }}@{{ matrix_mx_puppet_groupme_database_hostname }}:{{ matrix_mx_puppet_groupme_database_port }}/{{ matrix_mx_puppet_groupme_database_name }}?sslmode=disable'
  51. # Default configuration template which covers the generic use case.
  52. # You can customize it by controlling the various variables inside it.
  53. #
  54. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_groupme_configuration_extension_yaml`)
  55. # or completely replace this variable with your own template.
  56. matrix_mx_puppet_groupme_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  57. matrix_mx_puppet_groupme_configuration_extension_yaml: |
  58. # Your custom YAML configuration goes here.
  59. # This configuration extends the default starting configuration (`matrix_mx_puppet_groupme_configuration_yaml`).
  60. #
  61. # You can override individual variables from the default configuration, or introduce new ones.
  62. #
  63. # If you need something more special, you can take full control by
  64. # completely redefining `matrix_mx_puppet_groupme_configuration_yaml`.
  65. matrix_mx_puppet_groupme_configuration_extension: "{{ matrix_mx_puppet_groupme_configuration_extension_yaml|from_yaml if matrix_mx_puppet_groupme_configuration_extension_yaml|from_yaml is mapping else {} }}"
  66. # Holds the final configuration (a combination of the default and its extension).
  67. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_groupme_configuration_yaml`.
  68. matrix_mx_puppet_groupme_configuration: "{{ matrix_mx_puppet_groupme_configuration_yaml|from_yaml|combine(matrix_mx_puppet_groupme_configuration_extension, recursive=True) }}"
  69. matrix_mx_puppet_groupme_registration_yaml: |
  70. as_token: "{{ matrix_mx_puppet_groupme_appservice_token }}"
  71. hs_token: "{{ matrix_mx_puppet_groupme_homeserver_token }}"
  72. id: groupme-puppet
  73. namespaces:
  74. users:
  75. - exclusive: true
  76. regex: '@_groupmepuppet_.*:{{ matrix_mx_puppet_groupme_homeserver_domain|regex_escape }}'
  77. rooms: []
  78. aliases:
  79. - exclusive: true
  80. regex: '#_groupmepuppet_.*:{{ matrix_mx_puppet_groupme_homeserver_domain|regex_escape }}'
  81. protocols: []
  82. rate_limited: false
  83. sender_localpart: _groupmepuppet_bot
  84. url: {{ matrix_mx_puppet_groupme_appservice_address }}
  85. de.sorunome.msc2409.push_ephemeral: true
  86. matrix_mx_puppet_groupme_registration: "{{ matrix_mx_puppet_groupme_registration_yaml|from_yaml }}"