Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

112 satır
5.8 KiB

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