Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

76 lignes
2.6 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: heisenbridge-${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_heisenbridge_container_network: heisenbridge-molecule
  30. # The stub prepare.yml stands up. Heisenbridge talks to it while
  31. # starting; it is not a real homeserver and nothing is asserted about it.
  32. matrix_bridge_heisenbridge_homeserver_url: http://matrix.molecule.local:8008
  33. matrix_bridge_heisenbridge_appservice_token: molecule_as_token_4f2a91
  34. # Heisenbridge refuses to start without an owner - it is the Matrix user
  35. # allowed to administer the bridge.
  36. matrix_bridge_heisenbridge_owner: "@molecule-admin:molecule.local"
  37. # Deliberately different from the role's defaults, so verify.yml can tell
  38. # what the role rendered apart from what heisenbridge would have chosen.
  39. matrix_bridge_heisenbridge_path_prefix: /molecule-heisenbridge
  40. # identd binds host port 113, which would collide with anything else on
  41. # the machine and is not what this scenario is proving.
  42. matrix_bridge_heisenbridge_identd_enabled: false
  43. # Traefik is not deployed here, so the labels the role would render for
  44. # it are switched off and their absence is asserted instead.
  45. matrix_bridge_heisenbridge_container_labels_traefik_enabled: false
  46. # verify.yml runs as its own play, where role defaults are out of scope.
  47. # Unlike the mautrix bridges, heisenbridge keeps everything directly
  48. # under its base path rather than in config/ and data/ subdirectories.
  49. matrix_bridge_heisenbridge_base_path: /matrix/heisenbridge
  50. env:
  51. # Workaround for https://github.com/ansible/molecule/issues/4391
  52. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:~/.ansible/roles
  53. scenario:
  54. test_sequence:
  55. - dependency
  56. - cleanup
  57. - destroy
  58. - syntax
  59. - create
  60. - prepare
  61. - converge
  62. - idempotence
  63. - verify
  64. - cleanup
  65. - destroy
  66. verifier:
  67. name: ansible