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

79 строки
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: tuwunel-${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_tuwunel_hostname: matrix.example.com
  30. matrix_tuwunel_container_network: tuwunel-molecule
  31. matrix_tuwunel_config_server_name: example.com
  32. matrix_tuwunel_config_port_number: 16167
  33. matrix_tuwunel_systemd_service_post_start_delay_seconds: 0
  34. # Exercise real local registration against the embedded RocksDB database.
  35. # These credentials never authenticate to an external service.
  36. matrix_tuwunel_config_allow_registration: true
  37. matrix_tuwunel_config_registration_token: molecule-registration-7e290fc5
  38. matrix_tuwunel_config_new_user_displayname_suffix: '[Molecule]'
  39. matrix_tuwunel_config_grant_admin_to_first_user: false
  40. matrix_tuwunel_config_allow_federation: false
  41. matrix_tuwunel_config_trusted_servers: []
  42. matrix_tuwunel_config_max_request_size: 17000000
  43. matrix_tuwunel_config_well_known_client: https://matrix.example.com
  44. # Keep resource use modest on the CI runner. RocksDB is Tuwunel's native
  45. # database; no external database or homeserver fixture is needed.
  46. matrix_tuwunel_config_rocksdb_parallelism_threads: 2
  47. matrix_tuwunel_config_db_cache_capacity_mb: 32
  48. matrix_tuwunel_config_db_write_buffer_capacity_mb: 16
  49. # Labels are inspected on the running container; probes reach it directly
  50. # over its own network without publishing a host port or running Traefik.
  51. matrix_tuwunel_container_labels_traefik_entrypoints: web
  52. # Pin paths needed by verify.yml, but load the image version from the role.
  53. matrix_tuwunel_base_path: /matrix/tuwunel-molecule
  54. matrix_tuwunel_config_path: /matrix/tuwunel-molecule/config
  55. matrix_tuwunel_data_path: /matrix/tuwunel-molecule/data
  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