Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

96 satır
4.3 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-bluesky-${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_bluesky_container_network: mautrix-bluesky-molecule
  30. # The stub is not a real homeserver, and the scenario carries no Bluesky account or
  31. # credentials. An idle, logged-out bridge is the intended third-party boundary.
  32. matrix_bridge_mautrix_bluesky_homeserver_address: http://matrix.molecule.local:8008
  33. matrix_bridge_mautrix_bluesky_homeserver_domain: molecule.local
  34. # Postgres is this role's only database engine. The non-default identity makes schema
  35. # creation evidence that the role composed and delivered the scenario connection URI.
  36. matrix_bridge_mautrix_bluesky_database_hostname: matrix-postgres-molecule
  37. matrix_bridge_mautrix_bluesky_database_name: molecule_bluesky
  38. matrix_bridge_mautrix_bluesky_database_username: molecule_bluesky
  39. matrix_bridge_mautrix_bluesky_database_password: molecule_pg_password_74b0e2
  40. # Test-only fixtures which must reach config.yaml and registration.yaml.
  41. matrix_bridge_mautrix_bluesky_appservice_token: molecule_bluesky_as_token_1f27ac
  42. matrix_bridge_mautrix_bluesky_homeserver_token: molecule_bluesky_hs_token_91c0d8
  43. # Each value differs from the role default, allowing parsed checks to prove rendering.
  44. matrix_bridge_mautrix_bluesky_appservice_bot_username: molecule-blueskybot
  45. matrix_bridge_mautrix_bluesky_appservice_bot_displayname: Molecule Bluesky Bot
  46. matrix_bridge_mautrix_bluesky_appservice_bot_avatar: mxc://molecule.local/blueskyAvatarFixture
  47. matrix_bridge_mautrix_bluesky_network_displayname_template: "{% raw %}{{ .Username }}{% endraw %} via Molecule"
  48. matrix_bridge_mautrix_bluesky_bridge_command_prefix: "!molecule-bluesky"
  49. matrix_bridge_mautrix_bluesky_bridge_permissions:
  50. "*": relay
  51. molecule.local: admin
  52. matrix_bridge_mautrix_bluesky_matrix_federate_rooms: false
  53. matrix_bridge_mautrix_bluesky_backfill_enabled: false
  54. matrix_bridge_mautrix_bluesky_backfill_max_initial_messages: 23
  55. matrix_bridge_mautrix_bluesky_backfill_max_catchup_messages: 37
  56. matrix_bridge_mautrix_bluesky_provisioning_shared_secret: molecule_provisioning_secret_2f018a
  57. matrix_bridge_mautrix_bluesky_logging_level: info
  58. # Traefik is not started. These settings exercise the public address consumed by the
  59. # bridge and the route labels consumed by Docker.
  60. matrix_bridge_mautrix_bluesky_exposure_enabled: true
  61. matrix_bridge_mautrix_bluesky_exposure_hostname: bluesky-api.molecule.local
  62. matrix_bridge_mautrix_bluesky_exposure_path_prefix: /bridges/bluesky-api
  63. matrix_bridge_mautrix_bluesky_scheme: http
  64. matrix_bridge_mautrix_bluesky_container_labels_traefik_entrypoints: web
  65. matrix_bridge_mautrix_bluesky_container_labels_additional_labels: |
  66. molecule.bluesky.coverage=enabled
  67. # verify.yml is a separate play, where role defaults are out of scope.
  68. matrix_bridge_mautrix_bluesky_base_path: /matrix/mautrix-bluesky
  69. matrix_bridge_mautrix_bluesky_config_path: /matrix/mautrix-bluesky/config
  70. matrix_bridge_mautrix_bluesky_data_path: /matrix/mautrix-bluesky/data
  71. env:
  72. # Workaround for https://github.com/ansible/molecule/issues/4391
  73. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  74. scenario:
  75. test_sequence:
  76. - dependency
  77. - cleanup
  78. - destroy
  79. - syntax
  80. - create
  81. - prepare
  82. - converge
  83. - idempotence
  84. - verify
  85. - cleanup
  86. - destroy
  87. verifier:
  88. name: ansible