Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

87 Zeilen
3.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-bot-baibot-${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_bot_baibot_container_network: matrix-bot-baibot-molecule
  30. # verify.yml runs as its own play, where the role's defaults are out of scope,
  31. # so the paths it reads are pinned here to match what the role derives.
  32. matrix_bot_baibot_base_path: /matrix/baibot
  33. matrix_bot_baibot_config_path: /matrix/baibot/config
  34. matrix_bot_baibot_data_path: /matrix/baibot/data
  35. # baibot is a plain Matrix client, not an appservice: it logs in with a password
  36. # and then syncs, so a homeserver has to answer for it to get anywhere.
  37. matrix_bot_baibot_config_homeserver_url: http://matrix.molecule.local:8008
  38. # Deliberately different from the role's defaults AND from baibot's own, so a passing
  39. # assertion cannot be explained by "it would have happened anyway".
  40. matrix_bot_baibot_config_user_mxid_localpart: molecule-baibot
  41. matrix_bot_baibot_config_user_name: Molecule baibot
  42. matrix_bot_baibot_config_user_password: molecule_baibot_password_5b7c14
  43. matrix_bot_baibot_config_command_prefix: "!molecule-bai"
  44. matrix_bot_baibot_config_room_post_join_self_introduction_enabled: false
  45. matrix_bot_baibot_config_access_admin_patterns:
  46. - "@molecule-admin:molecule.local"
  47. # `debug` rather than the role's `info`, so the journal carries what the bot loaded.
  48. matrix_bot_baibot_config_logging_level_baibot: debug
  49. # A scenario must not need an AI provider account, and does not have to: providers are
  50. # contacted only when a message asks an agent to do something, never at startup.
  51. # So the agent below carries a placeholder key and a base URL that resolves nowhere.
  52. # Nothing is ever called, yet the definition still has to survive baibot's startup
  53. # parsing - which is what proves the role's provider templating produced something
  54. # the bot accepts.
  55. matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled: true
  56. matrix_bot_baibot_config_agents_static_definitions_anthropic_id: molecule-anthropic
  57. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_base_url: http://molecule-no-such-provider.invalid/v1
  58. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_api_key: molecule-placeholder-not-a-real-key
  59. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_model_id: molecule-model-4-2
  60. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_temperature: 0.25
  61. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_response_tokens: 1234
  62. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_context_tokens: 56789
  63. env:
  64. # Workaround for https://github.com/ansible/molecule/issues/4391
  65. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  66. scenario:
  67. test_sequence:
  68. - dependency
  69. - cleanup
  70. - destroy
  71. - syntax
  72. - create
  73. - prepare
  74. - converge
  75. - idempotence
  76. - verify
  77. - cleanup
  78. - destroy
  79. verifier:
  80. name: ansible