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.
 
 
 

74 lignes
2.4 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. Not a real homeserver, and nothing is asserted
  31. # 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: the Matrix user allowed to
  35. # administer the bridge.
  36. matrix_bridge_heisenbridge_owner: "@molecule-admin:molecule.local"
  37. # Different from the role's defaults, so verify.yml can tell what the role rendered
  38. # 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 the machine.
  41. matrix_bridge_heisenbridge_identd_enabled: false
  42. # Traefik is not deployed here, so the labels the role would render for it are
  43. # switched off and their absence is asserted instead.
  44. matrix_bridge_heisenbridge_container_labels_traefik_enabled: false
  45. # verify.yml runs as its own play, where role defaults are out of scope. Unlike the
  46. # mautrix bridges, heisenbridge keeps everything directly under its base path.
  47. matrix_bridge_heisenbridge_base_path: /matrix/heisenbridge
  48. env:
  49. # Workaround for https://github.com/ansible/molecule/issues/4391
  50. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  51. scenario:
  52. test_sequence:
  53. - dependency
  54. - cleanup
  55. - destroy
  56. - syntax
  57. - create
  58. - prepare
  59. - converge
  60. - idempotence
  61. - verify
  62. - cleanup
  63. - destroy
  64. verifier:
  65. name: ansible