Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

80 líneas
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-element-call-${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_element_call_enabled: true
  30. matrix_element_call_architecture: amd64
  31. # Keep the role's files away from its matrix_base_data_path-derived default,
  32. # proving that both the renderer and the systemd unit honor this contract.
  33. matrix_element_call_base_path: /matrix/molecule-element-call
  34. matrix_element_call_container_network: matrix-element-call-molecule
  35. # Both values differ from the role and application defaults. The live
  36. # /config.json response proves they reached the browser application.
  37. matrix_element_call_config_default_server_config_m_homeserver_base_url: https://homeserver.call.molecule.local
  38. matrix_element_call_config_default_server_config_m_homeserver_server_name: call-molecule.local
  39. matrix_element_call_config_livekit_livekit_service_url: https://livekit-jwt.call.molecule.local
  40. # Exercise the generated public routing and response-header labels.
  41. matrix_element_call_hostname: call.molecule.local
  42. matrix_element_call_container_labels_traefik_enabled: true
  43. matrix_element_call_container_labels_traefik_priority: 827
  44. matrix_element_call_container_labels_traefik_entrypoints: web
  45. matrix_element_call_container_labels_traefik_tls: false
  46. matrix_element_call_http_header_xss_protection: "0"
  47. matrix_element_call_http_header_content_type_options: molecule-nosniff
  48. matrix_element_call_http_header_content_security_policy: "frame-ancestors https://embed.call.molecule.local"
  49. matrix_element_call_http_header_content_permission_policy: "camera=(self), microphone=(self)"
  50. matrix_element_call_container_labels_additional_labels: |
  51. molecule.element-call.coverage=enabled
  52. # Make the generic Docker-argument escape hatch observable.
  53. matrix_element_call_container_extra_arguments:
  54. - --hostname=element-call-molecule-runtime
  55. - --label=molecule.element-call.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