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

91 строка
4.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: mautrix-googlechat-${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_bridge_mautrix_googlechat_container_network: mautrix-googlechat-molecule
  30. # The stub is the Matrix-side boundary. The scenario carries no Google account
  31. # and does not attempt to log in to Google Chat.
  32. matrix_bridge_mautrix_googlechat_homeserver_address: http://matrix.molecule.local:8008
  33. matrix_bridge_mautrix_googlechat_homeserver_domain: molecule.local
  34. matrix_homeserver_url: http://matrix.molecule.local:8008
  35. # Postgres is the normal deployment path. Non-default identifiers make its schema
  36. # evidence that the role composed and supplied this exact connection string.
  37. matrix_bridge_mautrix_googlechat_database_engine: postgres
  38. matrix_bridge_mautrix_googlechat_database_hostname: matrix-postgres-molecule
  39. matrix_bridge_mautrix_googlechat_database_name: molecule_googlechat
  40. matrix_bridge_mautrix_googlechat_database_username: molecule_googlechat
  41. matrix_bridge_mautrix_googlechat_database_password: molecule_pg_password_7c1d43
  42. matrix_bridge_mautrix_googlechat_appservice_token: molecule_googlechat_as_token_96c74e
  43. matrix_bridge_mautrix_googlechat_homeserver_token: molecule_googlechat_hs_token_51a2d8
  44. # These differ from role/component defaults so parsed assertions prove rendering.
  45. matrix_bridge_mautrix_googlechat_appservice_bot_username: molecule-googlechatbot
  46. matrix_bridge_mautrix_googlechat_command_prefix: "!molecule-googlechat"
  47. matrix_bridge_mautrix_googlechat_logging_level: INFO
  48. matrix_bridge_mautrix_googlechat_federate_rooms: false
  49. matrix_bridge_mautrix_googlechat_login_shared_secret: molecule_googlechat_login_secret_6832f1
  50. matrix_bridge_mautrix_googlechat_metrics_enabled: true
  51. # Traefik is not started; these values exercise role-rendered routing labels.
  52. matrix_bridge_mautrix_googlechat_public_endpoint: /molecule-googlechat
  53. matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_hostname: googlechat.molecule.local
  54. matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_path_prefix: /molecule-googlechat
  55. matrix_bridge_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints: web
  56. matrix_bridge_mautrix_googlechat_container_labels_metrics_enabled: true
  57. matrix_bridge_mautrix_googlechat_metrics_proxying_hostname: metrics.molecule.local
  58. matrix_bridge_mautrix_googlechat_metrics_proxying_path_prefix: /metrics/googlechat
  59. matrix_bridge_mautrix_googlechat_container_labels_metrics_traefik_entrypoints: web
  60. matrix_bridge_mautrix_googlechat_container_labels_additional_labels: |
  61. molecule.googlechat.coverage=enabled
  62. # verify.yml is a separate play, where role defaults are out of scope.
  63. matrix_bridge_mautrix_googlechat_base_path: /matrix/mautrix-googlechat
  64. matrix_bridge_mautrix_googlechat_config_path: /matrix/mautrix-googlechat/config
  65. matrix_bridge_mautrix_googlechat_data_path: /matrix/mautrix-googlechat/data
  66. env:
  67. # Workaround for https://github.com/ansible/molecule/issues/4391
  68. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  69. scenario:
  70. test_sequence:
  71. - dependency
  72. - cleanup
  73. - destroy
  74. - syntax
  75. - create
  76. - prepare
  77. - converge
  78. - idempotence
  79. - verify
  80. - cleanup
  81. - destroy
  82. verifier:
  83. name: ansible