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

127 строки
5.9 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-bridge-steam-${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_steam_enabled: true
  30. matrix_bridge_steam_container_network: matrix-bridge-steam-molecule
  31. # The stub is not a real homeserver and the scenario carries no Steam
  32. # credentials. Logged out is the intended component boundary.
  33. matrix_bridge_steam_homeserver_address: http://matrix.molecule.local:8008
  34. matrix_bridge_steam_homeserver_domain: molecule.local
  35. matrix_bridge_steam_homeserver_async_media: true
  36. # Use a non-default listener to prove configuration, service command and
  37. # routing labels agree on the appservice endpoint.
  38. matrix_bridge_steam_appservice_port: 8766
  39. # Postgres is the normal deployment path. Distinct names make the migrated
  40. # schema evidence that the role composed this connection successfully.
  41. matrix_bridge_steam_database_engine: postgres
  42. matrix_bridge_steam_database_hostname: matrix-postgres-molecule
  43. matrix_bridge_steam_database_name: molecule_steam
  44. matrix_bridge_steam_database_username: molecule_steam
  45. matrix_bridge_steam_database_password: molecule_pg_password_8f527c
  46. matrix_bridge_steam_appservice_token: molecule_steam_as_token_d74a61
  47. matrix_bridge_steam_homeserver_token: molecule_steam_hs_token_7b39e2
  48. matrix_bridge_steam_appservice_bot_username: molecule-steambot
  49. matrix_bridge_steam_appservice_bot_displayname: Molecule Steam bridge
  50. matrix_bridge_steam_appservice_bot_avatar: mxc://molecule.local/steamMoleculeAvatar
  51. # Exercise role-rendered Steam and generic bridge behavior with values that
  52. # differ from the role and component defaults.
  53. matrix_bridge_steam_network_displayname_template: "{% raw %}{{ .PersonaName }} via Molecule{% endraw %}"
  54. matrix_bridge_steam_network_presence_enabled: false
  55. matrix_bridge_steam_network_presence_inactivity_status: snooze
  56. matrix_bridge_steam_network_presence_topic_enabled: true
  57. matrix_bridge_steam_network_presence_topic_rich_presence_enabled: true
  58. matrix_bridge_steam_network_presence_topic_show_raw_tokens: true
  59. matrix_bridge_steam_command_prefix: "!molecule-steam"
  60. matrix_bridge_steam_bridge_permissions:
  61. "*": commands
  62. molecule.local: admin
  63. matrix_bridge_steam_bridge_split_portals: true
  64. matrix_bridge_steam_bridge_cleanup_on_logout_enabled: true
  65. matrix_bridge_steam_bridge_cleanup_on_logout_manual_private: kick
  66. matrix_bridge_steam_bridge_cleanup_on_logout_manual_relayed: unbridge
  67. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_no_users: delete
  68. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_has_users: kick
  69. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_private: delete
  70. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_relayed: kick
  71. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_no_users: unbridge
  72. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_has_users: delete
  73. matrix_bridge_steam_matrix_federate_rooms: true
  74. matrix_bridge_steam_backfill_enabled: false
  75. matrix_bridge_steam_backfill_max_initial_messages: 17
  76. matrix_bridge_steam_backfill_max_catchup_messages: 29
  77. matrix_bridge_steam_provisioning_shared_secret: molecule_steam_provisioning_secret_43c1ea
  78. matrix_bridge_steam_double_puppet_secrets_custom:
  79. molecule.remote: molecule_steam_double_puppet_51d28a
  80. matrix_bridge_steam_logging_level: info
  81. # Public media needs no external test fixture and is disabled here; bridge API
  82. # exposure remains enabled to exercise its generated Traefik contract.
  83. matrix_bridge_steam_public_media_enabled: false
  84. matrix_bridge_steam_appservice_public_address: http://steam-public.molecule.local
  85. matrix_bridge_steam_exposure_enabled: true
  86. matrix_bridge_steam_exposure_hostname: steam-api.molecule.local
  87. matrix_bridge_steam_exposure_path_prefix: /bridges/steam-api
  88. matrix_bridge_steam_container_labels_traefik_enabled: true
  89. matrix_bridge_steam_container_labels_traefik_entrypoints: web
  90. matrix_bridge_steam_container_labels_traefik_tls: false
  91. matrix_bridge_steam_container_labels_additional_labels: |
  92. molecule.steam.coverage=enabled
  93. matrix_bridge_steam_container_extra_arguments:
  94. - --hostname=steam-bridge-molecule-runtime
  95. - --label=molecule.steam.extra-argument=reached
  96. # verify.yml is a separate play, where role defaults are out of scope.
  97. matrix_bridge_steam_base_path: /matrix/matrix-steam-bridge
  98. matrix_bridge_steam_config_path: /matrix/matrix-steam-bridge/config
  99. matrix_bridge_steam_data_path: /matrix/matrix-steam-bridge/data
  100. env:
  101. # Workaround for https://github.com/ansible/molecule/issues/4391
  102. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  103. scenario:
  104. test_sequence:
  105. - dependency
  106. - cleanup
  107. - destroy
  108. - syntax
  109. - create
  110. - prepare
  111. - converge
  112. - idempotence
  113. - verify
  114. - cleanup
  115. - destroy
  116. verifier:
  117. name: ansible