61 Commits
Author SHA1 Message Date
karpenok aab0611aaf refactor(opnsense/xray): replace 310-line Jinja loop with sync_xray.py
ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (opnsense, ) (push) Successful in 3s
2026-11-15 23:07:41 +07:00
karpenok b2524d1d1e refactor(monitoring): split tasks into tagged subtasks, update BOOTSTRAP.md and .gitignore
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 17s
2026-11-15 22:55:54 +07:00
karpenok 0f0d4ff7ad fix(ci): chmod go-w and pass inventory in ansible-lint.yml, untrack pycache
ansible-deploy / plan (push) Successful in 2s
ansible-deploy / deploy (push) Skipped
ansible-lint / lint (push) Successful in 2s
2026-11-15 22:46:27 +07:00
karpenok fd0dcab300 ci: unify into matrix ansible-deploy.yml, add ansible-lint.yml and exit_nodes group
ansible-deploy / plan (push) Successful in 1s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 17s
ansible-lint / lint (push) Failing after 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 26s
ansible-deploy / deploy (core-net, ) (push) Successful in 52s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m18s
ansible-deploy / deploy (opnsense, ) (push) Successful in 9s
ansible-deploy / deploy (rus-central, ) (push) Successful in 52s
2026-11-15 22:44:34 +07:00
karpenok 189e31e266 ci: stop triggering all machine workflows on global ci/hosts/site changes 2026-11-15 22:38:15 +07:00
karpenokandCursor 321c78fc27 fix(core-git): не терять образ раннера и не деплоить из-за пустого файла
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
Архив homelab-ansible хранится на диске CT, проверка раннера вынесена в отдельную кнопку, cAdvisor смотрит свой порт.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 23:09:05 +07:00
karpenokandCursor db92435117 fix: убрать деплой core-git и apply CT 904 с раннера
ansible-core-mon / deploy (push) Successful in 28s
ansible-core-net / deploy (push) Successful in 1m0s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m14s
ansible-opnsense / deploy (push) Successful in 8s
ansible-rus-central / deploy (push) Successful in 57s
Раннер живёт на этой машине, job не может её пересобирать.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 22:51:36 +07:00
karpenokandCursor 634a46c118 chore(core-git): cutover адресов на 192.168.1.105 после миграции
ansible-core-net / deploy (push) Failing after 0s
Traefik backend, clone/state URL в workflows и BOOTSTRAP. CT 109
оставлен для rollback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 22:25:52 +07:00
karpenokandCursor 8e217b8585 fix(core-git): секреты Infisical и compose без up до миграции
ansible-core-net / deploy (push) Successful in 1m0s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-rus-central / deploy (push) Successful in 1m6s
ansible-core-git / deploy (push) Successful in 14s
ansible-core-mon / deploy (push) Successful in 23s
ansible-ger-nod-02 / deploy (push) Successful in 1m28s
ansible-opnsense / deploy (push) Successful in 6s
Подключает POSTGRES_USER/DB/PASSWORD, пишет compose при секретах,
поднимает стек только при наличии PG_VERSION. Terraform: import-core-git.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-13 22:13:44 +07:00
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 f8f927450b chore(ci): убрать временный seed-workflow после сидинга Xray-ссылок 2026-11-12 21:37:05 +07:00
karpenok 21f106993f feat(opnsense): синхронизировать подписки Xray через API плагина os-xray
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 52s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-ger-nod-02 / deploy (push) Successful in 1m21s
ansible-opnsense / deploy (push) Failing after 5s
ansible-rus-central / deploy (push) Successful in 51s
- роль opnsense/xray: instances.yml как источник правды, ссылки vless://
  из Infisical /services/opnsense-xray, конвертер в outbound_config,
  переключение активной подписки с validate/testconnect и откатом
- deploy-machine.sh: выгрузка /services/opnsense-xray для машины opnsense
- временный workflow xray-secrets-seed для первичного сидинга ссылок
2026-11-12 21:26:56 +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 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 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 065c47aee2 fix(monitoring): copy alerts.yml without jinja2 templating
ansible-core-mon / deploy (push) Successful in 1m8s
ansible-core-net / deploy (push) Successful in 18s
2026-11-11 16:08:38 +07:00
karpenok f26e0bfe57 feat(monitoring): add core-mon ansible playbook, roles, workflows, and traefik routes
ansible-core-mon / deploy (push) Failing after 7s
ansible-core-net / deploy (push) Successful in 26s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 44s
2026-11-11 16:00:53 +07:00
karpenok 822ae43992 feat(opnsense): add declarative NetBird plugin role and CI workflow
ansible-opnsense / deploy (push) Failing after 33s
2026-11-11 12:57:44 +07:00
karpenok 842a633916 chore(ansible,ci): align workflow paths, shared letsencrypt_email, and netbird task tags
ansible-core-net / deploy (push) Successful in 27s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-rus-central / deploy (push) Successful in 36s
2026-11-11 11:35:45 +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
karpenok abe9280a30 fix(security): eliminate all plaintext hashes from CI and unify compose package in host role 2026-11-10 17:19:20 +07:00
karpenok 7b38efbd0e fix(ci): export both /ci-cd and /services/traefik in ansible-core-net 2026-11-10 17:05:12 +07:00
karpenok 2e5cd90781 fix(ci): store traefik secrets under /services/traefik in Infisical 2026-11-10 17:00:24 +07:00
karpenok 75b12de642 fix(ci): ensure /services/netbird folder is created in Infisical before setting secrets 2026-11-10 16:51:46 +07:00
karpenok 4ab29058fe fix(security): move dashboard auth and netbird secrets to Infisical lifecycle
ansible-core-net / deploy (push) Successful in 21s
2026-11-10 16:44:23 +07:00
karpenok d8b56cc1a8 fix(ci): pass auth token explicitly to infisical export from universal-auth login 2026-11-10 12:04:55 +07:00
karpenok d2888c1149 feat(secrets): integrate Infisical Universal Auth into Gitea Actions workflows
ansible-core-net / deploy (push) Failing after 4m59s
ansible-core-secrets / deploy (push) Failing after 1m50s
- Configure Infisical CLI authentication via INFISICAL_CLIENT_ID and INFISICAL_CLIENT_SECRET
- Fetch runner SSH keys and state tokens dynamically from /ci-cd
- Fetch Proxmox target endpoints and tokens dynamically from /proxmox/<TARGET>
- Remove plaintext secrets from Ansible core_secrets defaults
- Clean up obsolete files and add --remove-orphans to docker compose invocations
2026-11-10 11:58:44 +07:00
karpenok e8344bb29a fix(ansible): ensure Docker is installed in core_net and fix package name in core_secrets
ansible-core-net / deploy (push) Successful in 20s
ansible-core-secrets / deploy (push) Successful in 2m41s
2026-11-09 22:49:49 +07:00
karpenok 4123a7689a feat(core-secrets): add Ansible role, compose stack, and CI/CD workflow
ansible-core-net / deploy (push) Successful in 16s
ansible-core-secrets / deploy (push) Failing after 12s
2026-11-09 22:34:27 +07:00
karpenok 3cefc59aee feat(terraform): declare CT 901 core-secrets on netcore 2026-11-09 22:08:48 +07:00
karpenok 2ded3a8585 feat(ci): enable automatic push trigger and declarative file deletion sync in core_net role
ansible-core-net / deploy (push) Successful in 16s
2026-11-09 21:35:29 +07:00
karpenok 93c3afaebf feat(ci): add ansible-core-net workflow to deploy Traefik to /opt/traefik via Gitea runner 2026-11-09 21:22:58 +07:00
karpenok f4d6e537cc fix(ci): pass scoped TF_STATE_TOKEN to terraform http backend (GITEA_* secret names are reserved) 2026-11-09 20:31:17 +07:00
karpenok afd7661ee8 fix(ci): use /api/packages registry path for terraform state and per-target proxmox token 2026-11-09 20:30:14 +07:00
karpenok 2bc77b50f4 refactor(terraform): structure directories by hypervisor (netcore/ and pve/) 2026-11-09 20:11:28 +07:00
karpenok 2b23809bc3 feat(terraform): define core-net LXC container (CT 902) on netcore 2026-11-09 20:00:34 +07:00
karpenok 3b7ed7a8f7 refactor: update terraform configuration and documentation for lxc provisioning 2026-11-08 18:37:15 +07:00
karpenok 3c300c0cde refactor: restructure repository into layered IaC architecture (ansible, terraform, kubernetes) 2026-11-08 18:36:52 +07:00
karpenok e3b8f56ff8 revert: return to clean state after successful NetBird installation (remove vault and bitwarden) 2026-11-08 17:17:27 +07:00
karpenok a49f271b4f feat(security): switch secrets management to Bitwarden dynamic lookup and clean repository 2026-11-08 16:56:01 +07:00
karpenok d4e0470a49 feat(vault): перейти на Ansible Vault для хранения секретов проекта 2026-11-08 15:23:30 +07:00
karpenok 3481829b62 feat: вынести admin_email и letsencrypt_email в group_vars/all.yml 2026-11-08 14:06:07 +07:00
karpenok dc14605fbd fix(ansible): использовать стандартный встроенный stdout_callback = default 2026-11-08 13:20:10 +07:00