Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

75 行
2.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-alertmanager-receiver-${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_alertmanager_receiver_hostname: alertmanager-receiver.molecule.local
  30. matrix_alertmanager_receiver_path_prefix: /
  31. matrix_alertmanager_receiver_container_network: matrix-alertmanager-receiver-molecule
  32. # verify.yml runs as its own play, where the role's defaults are out of scope,
  33. # so the paths it reads are pinned here to match what the role derives.
  34. matrix_alertmanager_receiver_base_path: /matrix/alertmanager-receiver
  35. matrix_alertmanager_receiver_config_path: /matrix/alertmanager-receiver/config
  36. # Traefik is not deployed here, so the labels the role would render for it are
  37. # switched off and their absence is asserted instead.
  38. matrix_alertmanager_receiver_container_labels_traefik_enabled: false
  39. # Different from the role's own defaults, so verify.yml can tell what the role
  40. # rendered apart from what the application would have done on its own.
  41. matrix_alertmanager_receiver_config_http_port: 12399
  42. matrix_alertmanager_receiver_config_http_metrics_enabled: true
  43. matrix_alertmanager_receiver_config_http_metrics_path: /molecule-metrics
  44. matrix_alertmanager_receiver_config_http_alerts_path_prefix: /molecule-alerts
  45. # The homeserver IS reached at startup: the service fetches its joined rooms and
  46. # exits 1 if that fails, so prepare.yml stands up a stub for it.
  47. matrix_alertmanager_receiver_config_matrix_homeserver_url: http://matrix.molecule.local:8008
  48. matrix_alertmanager_receiver_config_matrix_user_id: "@alertmanager:molecule.local"
  49. matrix_alertmanager_receiver_config_matrix_access_token: molecule_access_token_4f2a91
  50. matrix_alertmanager_receiver_config_matrix_room_mapping:
  51. molecule-room: "!molecule-room-id:molecule.local"
  52. env:
  53. # Workaround for https://github.com/ansible/molecule/issues/4391
  54. ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
  55. scenario:
  56. test_sequence:
  57. - dependency
  58. - cleanup
  59. - destroy
  60. - syntax
  61. - create
  62. - prepare
  63. - converge
  64. - idempotence
  65. - verify
  66. - cleanup
  67. - destroy
  68. verifier:
  69. name: ansible