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

102 строки
4.4 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: beeper-line-${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_beeper_line_container_network: beeper-line-molecule
  30. # The scenario deliberately stops at the third-party boundary: an idle, logged-out
  31. # bridge proves the playbook contract without needing a LINE account or credentials.
  32. matrix_bridge_beeper_line_homeserver_address: http://matrix.molecule.local:8008
  33. matrix_bridge_beeper_line_homeserver_domain: molecule.local
  34. # The playbook selects Postgres in normal deployments. Non-default credentials make
  35. # schema creation evidence that the role composed and delivered this connection URI.
  36. matrix_bridge_beeper_line_database_engine: postgres
  37. matrix_bridge_beeper_line_database_hostname: matrix-postgres-molecule
  38. matrix_bridge_beeper_line_database_name: molecule_beeper_line
  39. matrix_bridge_beeper_line_database_username: molecule_beeper_line
  40. matrix_bridge_beeper_line_database_password: molecule_pg_password_8f72d1
  41. matrix_bridge_beeper_line_appservice_token: molecule_line_as_token_4e81a9
  42. matrix_bridge_beeper_line_homeserver_token: molecule_line_hs_token_7c25f0
  43. matrix_bridge_beeper_line_appservice_bot_username: molecule-linebot
  44. matrix_bridge_beeper_line_appservice_bot_displayname: Molecule LINE Bot
  45. matrix_bridge_beeper_line_appservice_bot_avatar: mxc://molecule.local/lineAvatarFixture
  46. # Each value differs from the role default so parsed checks distinguish role output
  47. # from component defaults.
  48. matrix_bridge_beeper_line_command_prefix: "!molecule-line"
  49. matrix_bridge_beeper_line_bridge_personal_filtering_spaces: false
  50. matrix_bridge_beeper_line_federate_rooms: false
  51. matrix_bridge_beeper_line_backfill_enabled: true
  52. matrix_bridge_beeper_line_backfill_max_initial_messages: 27
  53. matrix_bridge_beeper_line_backfill_max_catchup_messages: 43
  54. matrix_bridge_beeper_line_backfill_unread_hours_threshold: 168
  55. matrix_bridge_beeper_line_provisioning_shared_secret: molecule_line_provisioning_68c93d
  56. matrix_bridge_beeper_line_logging_level: info
  57. matrix_bridge_beeper_line_bridge_permissions:
  58. "*": relay
  59. molecule.local: admin
  60. # Traefik itself is not needed. These values exercise both the public address consumed
  61. # by the bridge and the labels consumed by Docker.
  62. matrix_bridge_beeper_line_exposure_enabled: true
  63. matrix_bridge_beeper_line_exposure_hostname: line-api.molecule.local
  64. matrix_bridge_beeper_line_exposure_path_prefix: /bridges/line-api
  65. matrix_bridge_beeper_line_scheme: http
  66. matrix_bridge_beeper_line_container_labels_exposure_traefik_priority: 1722
  67. matrix_bridge_beeper_line_container_labels_exposure_traefik_entrypoints: web
  68. matrix_bridge_beeper_line_container_labels_additional_labels: |
  69. molecule.beeper-line.coverage=enabled
  70. # Exercise the systemd template's extensible Docker argument list.
  71. matrix_bridge_beeper_line_container_extra_arguments:
  72. - --env=MOLECULE_BEEPER_LINE_COVERAGE=enabled
  73. # verify.yml is a separate play, where role defaults are not in scope.
  74. matrix_bridge_beeper_line_base_path: /matrix/beeper-line
  75. matrix_bridge_beeper_line_config_path: /matrix/beeper-line/config
  76. matrix_bridge_beeper_line_data_path: /matrix/beeper-line/data
  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