Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

77 wiersze
3.0 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 live /config.json response is the weight-bearing proof that this
  35. # non-default setting reached the browser client through the role's mount.
  36. matrix_client_fluffychat_config_defaultHomeserver: homeserver.fluffy.molecule.local
  37. # Exercise non-default public routing and generated response-header labels.
  38. matrix_client_fluffychat_hostname: chat.fluffy.molecule.local
  39. matrix_client_fluffychat_path_prefix: /fluffy
  40. matrix_client_fluffychat_container_labels_traefik_enabled: true
  41. matrix_client_fluffychat_container_labels_traefik_priority: 731
  42. matrix_client_fluffychat_container_labels_traefik_entrypoints: web
  43. matrix_client_fluffychat_container_labels_traefik_tls: false
  44. matrix_client_fluffychat_http_header_xss_protection: "0"
  45. matrix_client_fluffychat_http_header_content_type_options: molecule-nosniff
  46. matrix_client_fluffychat_http_header_content_security_policy: "frame-ancestors https://embed.molecule.local"
  47. matrix_client_fluffychat_http_header_content_permission_policy: "camera=(self)"
  48. matrix_client_fluffychat_container_labels_additional_labels: |
  49. molecule.fluffychat.coverage=enabled
  50. # Make the generic escape hatch observable in the running container.
  51. matrix_client_fluffychat_container_extra_arguments:
  52. - --hostname=fluffychat-molecule-runtime
  53. - --label=molecule.fluffychat.extra-argument=reached
  54. env:
  55. # Workaround for https://github.com/ansible/molecule/issues/4391
  56. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  57. scenario:
  58. test_sequence:
  59. - dependency
  60. - cleanup
  61. - destroy
  62. - syntax
  63. - create
  64. - prepare
  65. - converge
  66. - idempotence
  67. - verify
  68. - cleanup
  69. - destroy
  70. verifier:
  71. name: ansible