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

101 строка
5.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-authentication-service-${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_authentication_service_hostname: mas.molecule.local
  30. matrix_authentication_service_path_prefix: /molecule-auth
  31. matrix_authentication_service_container_network: matrix-authentication-service-molecule
  32. # verify.yml is a separate play where role defaults are out of scope. These are
  33. # pinned to the paths the role derives from matrix_base_data_path.
  34. matrix_authentication_service_base_path: /matrix/matrix-authentication-service
  35. matrix_authentication_service_config_path: /matrix/matrix-authentication-service/config
  36. matrix_authentication_service_data_path: /matrix/matrix-authentication-service/data
  37. matrix_authentication_service_data_keys_path: /matrix/matrix-authentication-service/data/keys
  38. # Real Postgres, with a database and role which differ from the component defaults.
  39. # A migrated schema therefore proves hostname resolution and authentication too.
  40. matrix_authentication_service_config_database_host: matrix-postgres-molecule
  41. matrix_authentication_service_config_database_port: 5432
  42. matrix_authentication_service_config_database_username: molecule_mas_user
  43. matrix_authentication_service_config_database_password: molecule_pg_password_97af31
  44. matrix_authentication_service_config_database_database: molecule_mas_database
  45. matrix_authentication_service_config_database_max_connections: 7
  46. matrix_authentication_service_config_database_min_connections: 2
  47. matrix_authentication_service_config_database_connect_timeout: 17
  48. matrix_authentication_service_config_secrets_encryption: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
  49. matrix_authentication_service_config_matrix_homeserver: molecule.local
  50. matrix_authentication_service_config_matrix_secret: molecule_homeserver_secret_d3a58f
  51. matrix_authentication_service_config_matrix_endpoint: http://matrix.molecule.local:8008
  52. # Values unlike both the role and MAS defaults, so parsed configuration assertions
  53. # can tell whether this scenario reached the rendered file.
  54. matrix_authentication_service_config_http_trusted_proxies:
  55. - 198.51.100.0/24
  56. - 2001:db8:1234::/48
  57. matrix_authentication_service_config_email_from_name: Molecule MAS
  58. matrix_authentication_service_config_email_from_address: auth@molecule.local
  59. matrix_authentication_service_config_account_displayname_change_allowed: false
  60. matrix_authentication_service_config_account_password_registration_enabled: true
  61. matrix_authentication_service_config_account_password_registration_email_required: false
  62. matrix_authentication_service_config_account_password_recovery_enabled: true
  63. matrix_authentication_service_config_account_login_with_email_allowed: true
  64. matrix_authentication_service_config_passwords_minimum_complexity: 2
  65. # Traefik itself is intentionally absent. The rendered label file and Docker's live
  66. # labels prove the role composed the non-default routing contract correctly.
  67. matrix_authentication_service_container_labels_traefik_entrypoints: web
  68. matrix_authentication_service_container_labels_traefik_tls_certResolver: molecule-resolver
  69. matrix_authentication_service_container_labels_public_main_priority: 742
  70. matrix_authentication_service_container_labels_public_compatibility_layer_enabled: true
  71. matrix_authentication_service_container_labels_public_compatibility_layer_hostname: matrix.molecule.local
  72. matrix_authentication_service_container_labels_public_compatibility_layer_priority: 743
  73. matrix_authentication_service_container_labels_traefik_additional_response_headers_custom:
  74. X-Molecule-MAS: covered
  75. matrix_authentication_service_container_labels_additional_labels: |
  76. molecule.mas.coverage=enabled
  77. env:
  78. # Workaround for https://github.com/ansible/molecule/issues/4391
  79. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  80. scenario:
  81. test_sequence:
  82. - dependency
  83. - cleanup
  84. - destroy
  85. - syntax
  86. - create
  87. - prepare
  88. - converge
  89. - idempotence
  90. - verify
  91. - cleanup
  92. - destroy
  93. verifier:
  94. name: ansible