Ansible-Roles/service_map.yml
2026-05-08 22:12:36 +03:00

83 lines
3.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Статическая карта зависимостей между службами на разных хостах.
# Используется скриптом scripts/generate_report.py при генерации страницы dependencies.html.
#
# Поля:
# from.host — имя хоста-клиента (должно совпадать с именем в инвентаре)
# from.service — имя службы на хосте-клиенте (systemd unit без .service)
# to.host — имя хоста-сервера
# to.service — имя службы на хосте-сервере
# port — TCP/UDP порт подключения
# protocol — tcp или udp (по умолчанию tcp)
# description — описание зависимости на русском языке
dependencies:
# ── Мониторинг ──────────────────────────────────────────────────────────────
# - from:
# host: zabbix
# service: zabbix-server
# to:
# host: zabbix-db
# service: postgresql
# port: 5432
# protocol: tcp
# description: "Zabbix Server → PostgreSQL (хранение метрик и событий мониторинга)"
# - from:
# host: netxms
# service: netxmsd
# to:
# host: netxms-db
# service: postgresql
# port: 5432
# protocol: tcp
# description: "NetXMS daemon → PostgreSQL (топология сети, события, история)"
# ── Биллинг ─────────────────────────────────────────────────────────────────
# - from:
# host: billing-main
# service: httpd
# to:
# host: db-1
# service: mysqld
# port: 3306
# protocol: tcp
# description: "Биллинг (веб) → MySQL primary (основная БД биллинговой системы)"
# - from:
# host: billing-main
# service: httpd
# to:
# host: db-2
# service: mysqld
# port: 3306
# protocol: tcp
# description: "Биллинг (веб) → MySQL replica (реплика для чтения)"
# ── Bitrix24 ─────────────────────────────────────────────────────────────────
# - from:
# host: bitrix24
# service: httpd
# to:
# host: db-1
# service: mysqld
# port: 3306
# protocol: tcp
# description: "Bitrix24 → MySQL primary (БД CRM и корпоративного портала)"
# ── DNS ──────────────────────────────────────────────────────────────────────
# - from:
# host: zabbix
# service: zabbix-server
# to:
# host: ns3
# service: named
# port: 53
# protocol: udp
# description: "Zabbix → DNS (разрешение имён мониторинг-агентов)"