Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

80 Zeilen
3.1 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: matrix-client-fluffychat-${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. # Keep all support files outside the path derived from matrix_base_data_path,
  30. # proving that the role consistently uses its configured storage contract.
  31. matrix_client_fluffychat_base_path: /matrix/molecule-client-fluffychat
  32. matrix_client_fluffychat_config_path: /matrix/molecule-client-fluffychat/browser-config
  33. matrix_client_fluffychat_container_network: matrix-client-fluffychat-molecule
  34. # The image defaults to 8080, so this proves the role configures the listener itself.
  35. matrix_client_fluffychat_container_http_port: 8765
  36. # The live /config.json response is the weight-bearing proof that this
  37. # non-default setting reached the browser client through the role's mount.
  38. matrix_client_fluffychat_config_defaultHomeserver: homeserver.fluffy.molecule.local
  39. # Exercise non-default public routing and generated response-header labels.
  40. matrix_client_fluffychat_hostname: chat.fluffy.molecule.local
  41. matrix_client_fluffychat_path_prefix: /fluffy
  42. matrix_client_fluffychat_container_labels_traefik_enabled: true
  43. matrix_client_fluffychat_container_labels_traefik_priority: 731
  44. matrix_client_fluffychat_container_labels_traefik_entrypoints: web
  45. matrix_client_fluffychat_container_labels_traefik_tls: false
  46. matrix_client_fluffychat_http_header_xss_protection: "0"
  47. matrix_client_fluffychat_http_header_content_type_options: molecule-nosniff
  48. matrix_client_fluffychat_http_header_content_security_policy: "frame-ancestors https://embed.molecule.local"
  49. matrix_client_fluffychat_http_header_content_permission_policy: "camera=(self)"
  50. matrix_client_fluffychat_container_labels_additional_labels: |
  51. molecule.fluffychat.coverage=enabled
  52. # Make the generic escape hatch observable in the running container.
  53. matrix_client_fluffychat_container_extra_arguments:
  54. - --hostname=fluffychat-molecule-runtime
  55. - --label=molecule.fluffychat.extra-argument=reached
  56. env:
  57. # Workaround for https://github.com/ansible/molecule/issues/4391
  58. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  59. scenario:
  60. test_sequence:
  61. - dependency
  62. - cleanup
  63. - destroy
  64. - syntax
  65. - create
  66. - prepare
  67. - converge
  68. - idempotence
  69. - verify
  70. - cleanup
  71. - destroy
  72. verifier:
  73. name: ansible