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.
 
 
 

91 lines
3.8 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # The variables a role here reads from its surroundings rather than from its own
  6. # defaults. In a real run `matrix-base` and `group_vars/matrix_servers` provide
  7. # them; in a scenario they have to come from somewhere, and including
  8. # `matrix-base` itself does far more than a role scenario needs.
  9. #
  10. # Include from a scenario's prepare.yml, converge.yml and verify.yml:
  11. #
  12. # vars_files:
  13. # - "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/../../../molecule-shared/playbook-context.yml"
  14. #
  15. # A scenario can override any of these in its own group_vars - that is the point
  16. # of testing a role with values it would not have chosen for itself.
  17. #
  18. # Keep this to variables that come from OUTSIDE the role under test. Anything the
  19. # role defines belongs in the scenario, not here.
  20. # --- Identity and paths (matrix-base) --------------------------------------
  21. matrix_base_data_path: /matrix
  22. matrix_domain: molecule.local
  23. matrix_user_name: matrix
  24. matrix_group_name: matrix
  25. # Deliberately not 1000: the base images already have a user there, so a distinct
  26. # id is what proves a role used the one it was given rather than coinciding with
  27. # the image's own.
  28. matrix_user_uid: 1234
  29. matrix_user_gid: 1234
  30. # Empty in the playbook's own defaults too. Components that would invite an
  31. # administrator into a room skip doing so when it is empty, which is what a
  32. # scenario wants.
  33. matrix_admin: ''
  34. # --- Host commands (matrix-base) -------------------------------------------
  35. #
  36. # Some roles shell out to a host binary through this indirection instead of
  37. # naming it directly (matrix-bridge-hookshot and matrix-bridge-appservice-irc
  38. # both generate a key with it). matrix-base's defaults are what supplies the
  39. # value in a real run; those roles install the binary themselves, by including
  40. # matrix-base's `ensure_openssl_installed` tasks.
  41. matrix_host_command_openssl: "/usr/bin/env openssl"
  42. # --- Bridge-wide switches (matrix-base) ------------------------------------
  43. #
  44. # Every bridge role reads these, so they live here rather than in each bridge's
  45. # scenario. The values match the playbook's own defaults: encryption off, no
  46. # relay, no MSC4190. A bridge scenario that wants to prove one of these reaches
  47. # the rendered configuration should override it in its own group_vars.
  48. matrix_bridges_encryption_enabled: false
  49. matrix_bridges_encryption_default: false
  50. matrix_bridges_msc4190_enabled: false
  51. matrix_bridges_self_sign_enabled: false
  52. matrix_bridges_relay_enabled: false
  53. matrix_bridges_exposure_enabled: true
  54. matrix_bridges_exposure_hostname: molecule.local
  55. matrix_bridges_exposure_path_prefix: /bridges
  56. # --- Public hostnames (matrix-base) ----------------------------------------
  57. #
  58. # 18 of the roles here read one of these. Rendered against the scenario's
  59. # matrix_domain rather than left as Jinja, so a scenario can read them in
  60. # verify.yml without the role's defaults being in scope.
  61. matrix_server_fqn_matrix: matrix.molecule.local
  62. matrix_server_fqn_matrix_federation: matrix.molecule.local
  63. matrix_server_fqn_element: element.molecule.local
  64. matrix_server_fqn_hydrogen: hydrogen.molecule.local
  65. matrix_server_fqn_cinny: cinny.molecule.local
  66. matrix_server_fqn_sable: sable.molecule.local
  67. matrix_server_fqn_schildichat: schildichat.molecule.local
  68. matrix_server_fqn_fluffychat: fluffychat.molecule.local
  69. matrix_server_fqn_buscarron: buscarron.molecule.local
  70. matrix_server_fqn_etherpad: etherpad.molecule.local
  71. matrix_server_fqn_jitsi: jitsi.molecule.local
  72. matrix_server_fqn_grafana: stats.molecule.local
  73. matrix_server_fqn_sygnal: sygnal.molecule.local
  74. matrix_server_fqn_mautrix_wsproxy: wsproxy.molecule.local
  75. matrix_server_fqn_ntfy: ntfy.molecule.local
  76. matrix_server_fqn_rageshake: rageshake.molecule.local
  77. matrix_server_fqn_matrixto: mt.molecule.local