Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

95 строки
4.2 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. dependency:
  6. name: galaxy
  7. options:
  8. requirements-file: requirements.yml
  9. force: true
  10. driver:
  11. name: docker
  12. platforms:
  13. - name: mautrix-signal-${MOLECULE_DISTRO:-ubuntu2604}-default
  14. image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2604}-ansible:latest"
  15. command: ${MOLECULE_DOCKER_COMMAND:-""}
  16. volumes:
  17. - /sys/fs/cgroup:/sys/fs/cgroup:rw
  18. cgroupns_mode: host
  19. privileged: true
  20. pre_build_image: true
  21. provisioner:
  22. name: ansible
  23. config_options:
  24. defaults:
  25. callback_result_format: yaml
  26. inventory:
  27. group_vars:
  28. all:
  29. matrix_bridge_mautrix_signal_container_network: mautrix-signal-molecule
  30. # The stub prepare.yml stands up. It is not a real homeserver and the scenario
  31. # deliberately carries no Signal credentials or linked Signal account.
  32. matrix_bridge_mautrix_signal_homeserver_address: http://matrix.molecule.local:8008
  33. matrix_bridge_mautrix_signal_homeserver_domain: molecule.local
  34. # Postgres is what group_vars/matrix_servers selects whenever Postgres is enabled,
  35. # which is the default deployment path. The non-default database and user names make
  36. # schema creation evidence that the role composed and supplied this connection string.
  37. matrix_bridge_mautrix_signal_database_engine: postgres
  38. matrix_bridge_mautrix_signal_database_hostname: matrix-postgres-molecule
  39. matrix_bridge_mautrix_signal_database_name: molecule_signal
  40. matrix_bridge_mautrix_signal_database_username: molecule_signal
  41. matrix_bridge_mautrix_signal_database_password: molecule_pg_password_b723e1
  42. # These are only Molecule fixtures which must reach both the configuration and the
  43. # registration. They do not authenticate against a real homeserver.
  44. matrix_bridge_mautrix_signal_appservice_token: molecule_signal_as_token_0c981a
  45. matrix_bridge_mautrix_signal_homeserver_token: molecule_signal_hs_token_45de72
  46. # Each differs from the role's default, so structural checks can distinguish the
  47. # role's rendered values from values the bridge would have chosen on its own.
  48. matrix_bridge_mautrix_signal_appservice_bot_username: molecule-signalbot
  49. matrix_bridge_mautrix_signal_command_prefix: "!molecule-signal"
  50. matrix_bridge_mautrix_signal_logging_level: info
  51. matrix_bridge_mautrix_signal_federate_rooms: false
  52. matrix_bridge_mautrix_signal_extev_polls: true
  53. matrix_bridge_mautrix_signal_bridge_relay_enabled: true
  54. matrix_bridge_mautrix_signal_bridge_relay_admin_only: false
  55. matrix_bridge_mautrix_signal_backfill_max_initial_messages: 17
  56. # Traefik is not started. These values exercise the role's composition of both the
  57. # public address the bridge reads and the exposure labels Docker consumes.
  58. matrix_bridge_mautrix_signal_exposure_enabled: true
  59. matrix_bridge_mautrix_signal_exposure_hostname: signal-api.molecule.local
  60. matrix_bridge_mautrix_signal_exposure_path_prefix: /bridges/signal-api
  61. matrix_bridge_mautrix_signal_scheme: http
  62. matrix_bridge_mautrix_signal_container_labels_traefik_entrypoints: web
  63. matrix_bridge_mautrix_signal_container_labels_additional_labels: |
  64. molecule.signal.coverage=enabled
  65. # verify.yml is a separate play, where role defaults are out of scope, so paths it
  66. # reads are pinned here to the values the role derives during converge.
  67. matrix_bridge_mautrix_signal_base_path: /matrix/mautrix-signal
  68. matrix_bridge_mautrix_signal_config_path: /matrix/mautrix-signal/config
  69. matrix_bridge_mautrix_signal_data_path: /matrix/mautrix-signal/data
  70. env:
  71. # Workaround for https://github.com/ansible/molecule/issues/4391
  72. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  73. scenario:
  74. test_sequence:
  75. - dependency
  76. - cleanup
  77. - destroy
  78. - syntax
  79. - create
  80. - prepare
  81. - converge
  82. - idempotence
  83. - verify
  84. - cleanup
  85. - destroy
  86. verifier:
  87. name: ansible