Commit Graph
26 Commits
Author SHA1 Message Date
karpenokandCursor c507ed1fdb feat(core-git): каркас машины CT 904 под Gitea до миграции
ansible-core-git / deploy (push) Successful in 27s
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 54s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m15s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 50s
Добавляет terraform/ansible/CI и scrape cAdvisor. Стек Gitea без
POSTGRES_PASSWORD в Infisical не поднимается — данные придут с CT 109.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 22:00:53 +07:00
karpenok 99215bf7b1 feat(agent-vault): регистрировать панель NetBird в Access Bundle
ansible-core-net / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 22s
Роль agent_vault_service научилась переопределять заголовок креденшла:
NetBird ждёт Authorization: Token <pat>, а не Bearer, поэтому добавлены
agent_vault_service_header_name и agent_vault_service_header_prefix.

NetBird регистрируется после сохранения токена в /services/netbird:
host central.gunihome.ru:443, путь /api, только GET — панель управляет
пирами и маршрутами, запись пока не открываем.
2026-11-13 21:04:23 +07:00
karpenok e6e3cb162a feat(agent-vault): регистрировать сервисы продуктов в Access Bundle из роли
ansible-core-net / deploy (push) Successful in 25s
Общая роль agent_vault_service ищет сервис по имени в бандле, создаёт при
отсутствии и обновляет креденшл при наличии, поэтому ротация токена на
каждом прогоне не ломает доступ агента.

Креденшл читается из Infisical через infisical secrets get --plain и не
проходит через переменные Ansible. Если API не принял PATCH, сервис
пересоздаётся.

Remnawave регистрирует панель после сохранения API-токена в
/services/remnawave: хост rw.gunihome.ru:443, путь /api, GET и POST.

На версии v0.167.7 сервисы создаются bundle-scoped маршрутом
POST /api/v1/agent-vault/access-bundles/<id>/services: описанного в
документации POST /api/v1/agent-vault/services там ещё нет.
2026-11-13 20:57:02 +07:00
karpenok d8d029f5b9 docs(bootstrap): описать роль opnsense/xray и секреты /services/opnsense-xray 2026-11-12 21:37:48 +07:00
karpenokandCursor 93958f93e2 fix(monitoring): убрать Node Exporter Full и собирать cAdvisor со всех Docker-хостов
ansible-core-mon / deploy (push) Successful in 20s
ansible-core-secrets / deploy (push) Successful in 27s
ansible-rus-central / deploy (push) Successful in 59s
Старый дашборд оставался в каталоге Grafana, потому что копирование его не удаляет. core-secrets и rus-central не попадали в Cadvisor exporter: экспортёра на них не было.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 18:13:20 +07:00
karpenokandCursor 57aa12b9c5 feat(monitoring): заменить Prometheus на vmalert
ansible-core-mon / deploy (push) Successful in 37s
ansible-core-net / deploy (push) Successful in 56s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-ger-nod-02 / deploy (push) Successful in 1m22s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 39s
Алерты считаются по VictoriaMetrics и уходят в тот же Alertmanager, второй сбор метрик больше не нужен.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 17:54:25 +07:00
karpenokandCursor 13870d6399 fix(core-net): не ломать Terraform из-за запрета на /dev/net/tun
ansible-core-net / deploy (push) Failing after 59s
ansible-ger-nod-02 / deploy (push) Successful in 25s
Токен Proxmox не может пробросить устройство. Остальной стек панели ставится до роли NetBird, а команда для root@pam описана в bootstrap.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 16:57:19 +07:00
karpenokandCursor 83fde054b4 feat(core-net): пробросить /dev/net/tun для клиента NetBird
Unprivileged LXC иначе не поднимает WireGuard. Устройство появляется после одного перезапуска CT 902.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 16:55:12 +07:00
karpenokandCursor 72a9c86e52 feat: VictoriaMetrics и NetBird между панелью и ger-nod-02
ansible-core-net / deploy (push) Canceled after 0s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-core-mon / deploy (push) Successful in 58s
ansible-rus-central / deploy (push) Successful in 44s
Prometheus остаётся для LAN. Нода отдаёт метрики через vmagent, а панель ходит на неё по отдельному ключу NetBird, не через группу роутеров.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 16:50:44 +07:00
karpenokandCursor 5704272c18 fix: роль host один раз и рабочие маршруты Nextcloud
ansible-core-mon / deploy (push) Successful in 20s
ansible-core-net / deploy (push) Successful in 20s
ansible-ger-nod-02 / deploy (push) Successful in 41s
ansible-rus-central / deploy (push) Successful in 38s
Полная сверка больше не готовит машину дважды, а Traefik видит entryPoints у cloud и opencloud. Каталог старых маршрутов помечен как отложенный долг.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 14:21:32 +07:00
karpenokandCursor 0699aa9476 fix(remnawave): логи bootstrap видны, ключи только в файле
ansible-core-net / deploy (push) Failing after 11s
no_log остаётся на чтении секретов, Infisical и .env.
stdout задачи — статус без токена и SECRET_KEY.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:41:37 +07:00
karpenokandCursor e4fc3fce69 fix(remnawave): пользователи из файла, ротация API-токена без логов
ansible-core-net / deploy (push) Failing after 14s
users.yml — источник правды (homelab — первый). Именованный токен
перевыпускается каждый прогон и пишется в Infisical; stdout/stderr
секретов в CI закрыты no_log и redact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:39:18 +07:00
karpenokandCursor 0a56b935de fix(ger-nod-02): пароль как у central, HTTP-01 без ACME TXT, кавычки SECRET_KEY
ansible-rus-central / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-core-net / deploy (push) Canceled after 0s
ansible-core-mon / deploy (push) Canceled after 24s
ansible-ger-nod-02 / deploy (push) Successful in 4m1s
Падение было на :443 — SECRET_KEY без кавычек ломал ноду.
DNS-01 убран: LE через standalone HTTP-01, старые _acme-challenge чистим.
ansible_password только из /VPS; host в плейбуке как у rus-central.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:20:02 +07:00
karpenokandCursor 385505b5f7 fix(ger-nod-02): читать PASS из /VPS, Cloudflare из /ci-cd
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 36s
ansible-core-secrets / deploy (push) Successful in 13s
ansible-ger-nod-02 / deploy (push) Failing after 2s
ansible-opnsense / deploy (push) Successful in 4s
ansible-rus-central / deploy (push) Successful in 1m6s
Реальные пути в Infisical: CLOUDFLARE_API в /ci-cd, PASS_GER_NOD_02
в /VPS — без пароля SSH был Permission denied.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:06:05 +07:00
karpenokandCursor dd19301c33 fix(remnawave): не светить ключи в CI + заметка в BOOTSTRAP
ansible-core-net / deploy (push) Failing after 1m0s
no_log на bootstrap; stderr API редáctит privateKey/SECRET_KEY/токены;
в BOOTSTRAP — правило для новых установок.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:53:40 +07:00
karpenokandCursor 8caaddc779 feat(remnawave): declarative panel on core-net and SelfSteal node on ger-nod-02
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-rus-central / deploy (push) Canceled after 0s
ansible-core-net / deploy (push) Failing after 26s
Add Remnawave panel+subscription behind Traefik (rw/sub.gunihome.ru), API bootstrap into Infisical, and ger-nod-02 node with Cloudflare DNS-01 SelfSteal (yali.gunis.top). Leaves remna.gunihome.ru on Golova untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:15:45 +07:00
karpenok 317b5d6207 feat(monitoring): integrate alertmanager-ntfy and fix host dropdown in node exporter dashboard
ansible-core-mon / deploy (push) Failing after 21s
ansible-core-net / deploy (push) Successful in 24s
ansible-core-secrets / deploy (push) Successful in 13s
ansible-rus-central / deploy (push) Successful in 1m1s
2026-11-11 20:54:55 +07:00
karpenok bf4144a767 docs & refactor: sync secrets docs and clean up env var lookups
ansible-core-mon / deploy (push) Successful in 22s
ansible-core-net / deploy (push) Successful in 24s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 40s
2026-11-11 18:26:51 +07:00
karpenok 9e9b8e9caf feat(terraform): add core-mon LXC container definition on netcore 2026-11-11 15:56:07 +07:00
karpenok 324327ee24 feat(netbird): automate admin setup, API token, setup key, and LAN route on rus-central
ansible-core-net / deploy (push) Successful in 25s
ansible-core-secrets / deploy (push) Successful in 10s
ansible-rus-central / deploy (push) Failing after 1m24s
2026-11-11 12:46:01 +07:00
karpenokandCursor a0507719b0 refactor: drop the finished secrets migration from the deploy path
Product tags now come from the role directory, and edits to the CI scripts no longer redeploy every machine.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 00:09:23 +07:00
karpenokandCursor 9c692522fb refactor: split machine deploys from one-time secrets migration
ansible-core-net / deploy (push) Failing after 39s
ansible-rus-central / deploy (push) Failing after 15s
ansible-core-secrets / deploy (push) Successful in 30s
Roles stay under the machine that runs them, CI applies only a known product, and the /opt/secrets move is a one-shot playbook instead of part of every core-secrets run.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 23:55:34 +07:00
karpenok 340964523e feat(authentik): integrate Traefik dashboard with Authentik for admin access control and streamline secret management
ansible-core-net / deploy (push) Successful in 33s
2026-11-10 21:27:56 +07:00
karpenok 10cf792e4e feat(auth): deploy Authentik on CT 902 with Zero-Knowledge secret bootstrap and safe Traefik route
ansible-core-net / deploy (push) Successful in 2m39s
2026-11-10 19:40:54 +07:00
karpenok 03b6b0ee56 fix(ci): decouple terraform state from traefik via direct gitea http and document master keys in bootstrap 2026-11-10 18:23:38 +07:00
karpenok f76cad9c73 fix(ci): decouple runner from traefik via direct infisical lan endpoint and pin traefik version
ansible-core-net / deploy (push) Successful in 31s
2026-11-10 17:54:39 +07:00