Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

75 строки
2.8 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-admin-${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. # verify.yml is a separate play where the role's defaults are out of scope.
  30. # Use a deliberately non-default storage path, not merely the value the role
  31. # derives from matrix_base_data_path, so its rendered support-file locations
  32. # and the systemd unit's --env-file/--label-file contract are exercised.
  33. matrix_element_admin_base_path: /matrix/molecule-element-admin
  34. matrix_element_admin_container_network: matrix-element-admin-molecule
  35. # Element Admin currently hardcodes browser asset paths to `/`, so the role
  36. # correctly rejects a non-root public prefix. Exercise non-default public
  37. # routing through the hostname, priority and plain-HTTP entrypoint instead.
  38. matrix_element_admin_hostname: element-admin-console.molecule.local
  39. matrix_element_admin_path_prefix: /
  40. matrix_element_admin_container_labels_traefik_enabled: true
  41. matrix_element_admin_container_labels_traefik_priority: 619
  42. matrix_element_admin_container_labels_traefik_entrypoints: web
  43. matrix_element_admin_container_labels_traefik_tls: false
  44. matrix_element_admin_container_labels_additional_labels: |
  45. molecule.element-admin.coverage=enabled
  46. # The image's entrypoint embeds its browser configuration into index.html
  47. # from SERVER_NAME.
  48. # This differs from the role and application's defaults, making the live HTTP
  49. # response evidence that the rendered env file reached the process.
  50. matrix_element_admin_environment_variable_server_name: matrix-backend.molecule.local
  51. matrix_element_admin_environment_variables_additional_variables: |
  52. MOLECULE_ELEMENT_ADMIN_MARKER=environment-reached
  53. env:
  54. # Workaround for https://github.com/ansible/molecule/issues/4391
  55. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  56. scenario:
  57. test_sequence:
  58. - dependency
  59. - cleanup
  60. - destroy
  61. - syntax
  62. - create
  63. - prepare
  64. - converge
  65. - idempotence
  66. - verify
  67. - cleanup
  68. - destroy
  69. verifier:
  70. name: ansible