Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

113 líneas
5.5 KiB

  1. ---
  2. # Mx Puppet Skype is a Matrix <-> Skype bridge
  3. # See: https://github.com/Sorunome/mx-puppet-skype
  4. matrix_mx_puppet_skype_enabled: true
  5. matrix_mx_puppet_skype_container_image_self_build: false
  6. matrix_mx_puppet_skype_container_image_self_build_repo: "https://github.com/Sorunome/mx-puppet-skype.git"
  7. matrix_mx_puppet_skype_version: latest
  8. matrix_mx_puppet_skype_docker_image: "{{ matrix_mx_puppet_skype_docker_image_name_prefix }}sorunome/mx-puppet-skype:{{ matrix_mx_puppet_skype_version }}"
  9. matrix_mx_puppet_skype_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_skype_container_image_self_build else matrix_container_global_registry_prefix }}"
  10. matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
  11. matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
  12. matrix_mx_puppet_skype_config_path: "{{ matrix_mx_puppet_skype_base_path }}/config"
  13. matrix_mx_puppet_skype_data_path: "{{ matrix_mx_puppet_skype_base_path }}/data"
  14. matrix_mx_puppet_skype_docker_src_files_path: "{{ matrix_mx_puppet_skype_base_path }}/docker-src"
  15. matrix_mx_puppet_skype_appservice_port: "8438"
  16. matrix_mx_puppet_skype_homeserver_address: "{{ matrix_homeserver_container_url }}"
  17. matrix_mx_puppet_skype_appservice_address: 'http://matrix-mx-puppet-skype:{{ matrix_mx_puppet_skype_appservice_port }}'
  18. # "@user:server.com" to allow specific user
  19. # "@.*:yourserver.com" to allow users on a specific homeserver
  20. # "@.*" to allow anyone
  21. matrix_mx_puppet_skype_provisioning_whitelist:
  22. - "@.*:{{ matrix_domain|regex_escape }}"
  23. # Leave empty to disable blacklist
  24. # "@user:server.com" disallow a specific user
  25. # "@.*:yourserver.com" disallow users on a specific homeserver
  26. matrix_mx_puppet_skype_provisioning_blacklist: []
  27. # Same as provisioning
  28. matrix_mx_puppet_skype_relay_whitelist:
  29. - "@.*:{{ matrix_domain|regex_escape }}"
  30. # Same as provisioning
  31. matrix_mx_puppet_skype_relay_blacklist: []
  32. # A list of extra arguments to pass to the container
  33. matrix_mx_puppet_skype_container_extra_arguments: []
  34. # List of systemd services that matrix-puppet-skype.service depends on.
  35. matrix_mx_puppet_skype_systemd_required_services_list: ['docker.service']
  36. # List of systemd services that matrix-puppet-skype.service wants
  37. matrix_mx_puppet_skype_systemd_wanted_services_list: []
  38. matrix_mx_puppet_skype_appservice_token: ''
  39. matrix_mx_puppet_skype_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_skype_login_shared_secret: ''
  42. # Database configuration, role default is `sqlite` but playbook default is `postgres`
  43. matrix_mx_puppet_skype_database_engine: sqlite
  44. matrix_mx_puppet_skype_sqlite_database_path_local: "{{ matrix_mx_puppet_skype_data_path }}/database.db"
  45. matrix_mx_puppet_skype_sqlite_database_path_in_container: "/data/database.db"
  46. matrix_mx_puppet_skype_database_username: matrix_mx_puppet_skype
  47. matrix_mx_puppet_skype_database_password: ~
  48. matrix_mx_puppet_skype_database_hostname: 'matrix-postgres'
  49. matrix_mx_puppet_skype_database_port: 5432
  50. matrix_mx_puppet_skype_database_name: matrix_mx_puppet_skype
  51. matrix_mx_puppet_skype_database_connection_string: 'postgresql://{{ matrix_mx_puppet_skype_database_username }}:{{ matrix_mx_puppet_skype_database_password }}@{{ matrix_mx_puppet_skype_database_hostname }}:{{ matrix_mx_puppet_skype_database_port }}/{{ matrix_mx_puppet_skype_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_skype_configuration_extension_yaml`)
  56. # or completely replace this variable with your own template.
  57. matrix_mx_puppet_skype_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  58. matrix_mx_puppet_skype_configuration_extension_yaml: |
  59. # Your custom YAML configuration goes here.
  60. # This configuration extends the default starting configuration (`matrix_mx_puppet_skype_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_skype_configuration_yaml`.
  66. matrix_mx_puppet_skype_configuration_extension: "{{ matrix_mx_puppet_skype_configuration_extension_yaml|from_yaml if matrix_mx_puppet_skype_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_skype_configuration_yaml`.
  69. matrix_mx_puppet_skype_configuration: "{{ matrix_mx_puppet_skype_configuration_yaml|from_yaml|combine(matrix_mx_puppet_skype_configuration_extension, recursive=True) }}"
  70. matrix_mx_puppet_skype_registration_yaml: |
  71. as_token: "{{ matrix_mx_puppet_skype_appservice_token }}"
  72. hs_token: "{{ matrix_mx_puppet_skype_homeserver_token }}"
  73. id: skype-puppet
  74. namespaces:
  75. users:
  76. - exclusive: true
  77. regex: '@_skypepuppet_.*:{{ matrix_domain|regex_escape }}'
  78. rooms: []
  79. aliases:
  80. - exclusive: true
  81. regex: '#_skypepuppet_.*:{{ matrix_domain|regex_escape }}'
  82. protocols: []
  83. rate_limited: false
  84. sender_localpart: _skypepuppet_bot
  85. url: {{ matrix_mx_puppet_skype_appservice_address }}
  86. de.sorunome.msc2409.push_ephemeral: true
  87. matrix_mx_puppet_skype_registration: "{{ matrix_mx_puppet_skype_registration_yaml|from_yaml }}"