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
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>
This commit is contained in:
1 parent
090a92174b
commit
c507ed1fdb
15 files changed
+315
-11
No files matched your search
+8
-3
@@ -9,11 +9,12 @@
|
||||
| `core-net` | `playbooks/core-net.yml` | `roles/core-net/traefik`; `roles/core-net/netbird`; `roles/core-net/remnawave`; `roles/core-net/vmagent`; `roles/core-net/authentik` *(опц., по умолчанию выкл.)* | `/opt/traefik`; клиент NetBird; `/opt/remnawave`; `/opt/vmagent`; `/opt/authentik` *(если включён)* |
|
||||
| `core-secrets` | `playbooks/core-secrets.yml` | `roles/core-secrets/infisical`, `roles/core-secrets/vaultwarden`, `roles/core-secrets/cadvisor` | `/opt/infisical`, `/opt/vaultwarden`, `/opt/cadvisor` |
|
||||
| `core-mon` | `playbooks/core-mon.yml` | `roles/core-mon/monitoring` | `/opt/monitoring` (VictoriaMetrics, vmalert, Grafana) |
|
||||
| `core-git` | `playbooks/core-git.yml` | `roles/core-git/gitea`, `roles/core-git/cadvisor` | `/opt/gitea`, `/opt/cadvisor` |
|
||||
| `rus-central` | `playbooks/rus-central.yml` | `roles/rus-central/netbird`, `roles/rus-central/cadvisor` | `/opt/netbird`, `/opt/cadvisor` |
|
||||
| `ger-nod-02` | `playbooks/ger-nod-02.yml` | `roles/ger-nod-02/netbird`; `roles/ger-nod-02/remnanode`; `roles/ger-nod-02/vmagent` | клиент NetBird; `/opt/remnanode`; `/opt/vmagent` |
|
||||
| `opnsense` | `playbooks/opnsense.yml` | `roles/opnsense/netbird`; `roles/opnsense/xray` | REST API (`192.168.1.1:4433`) |
|
||||
|
||||
Полная сверка одной машины: `ansible-playbook playbooks/site.yml --limit <машина>`. Gitea в автоматизацию не входит: без неё не запустить пайплайны.
|
||||
Полная сверка одной машины: `ansible-playbook playbooks/site.yml --limit <машина>`. Пока боевой инстанс на CT 109, пайплайны клонируют репо с `192.168.1.217`. Целевой `core-git` (CT 904) уже в автоматизации; cutover DNS/Traefik — отдельный шаг миграции.
|
||||
|
||||
---
|
||||
|
||||
@@ -26,15 +27,16 @@
|
||||
| **pve** | `192.168.1.2:8006` | PVE Main Node / Services | `root@192.168.1.2` (LAN only) |
|
||||
| **opnsense** | `192.168.1.1` | Маршрутизатор / Шлюз | Шлюз по умолчанию |
|
||||
|
||||
Terraform в этом репозитории описывает только узел `netcore`. Узел `pve` и CT 109 поднимаются отдельно.
|
||||
Terraform в этом репозитории описывает узел `netcore` (включая `core-git`). Боевой CT 109 на `pve` пока остаётся источником до миграции.
|
||||
|
||||
### 1.2. Базовые управляющие контейнеры (LXC / Debian 13)
|
||||
| CT ID | Хост PVE | IP | Имя хоста | Продукты |
|
||||
|---|---|---|---|---|
|
||||
| **CT 109** | `pve` | `192.168.1.217` | `gitea` | Gitea (`:3000`), Postgres (`:5432`), Gitea Actions Runner (`dind`) |
|
||||
| **CT 109** | `pve` | `192.168.1.217` | `gitea` | Боевой Gitea (`:3000`), Postgres, Actions Runner (`dind`) — до cutover |
|
||||
| **CT 901** | `netcore` | `192.168.1.102` | `core-secrets` | Infisical (`:8080`), Postgres, Redis, Vaultwarden (`:8000`) |
|
||||
| **CT 902** | `netcore` | `192.168.1.104` | `core-net` | Traefik (`:80`, `:443`); Remnawave Panel (`127.0.0.1:3000`) + Subscription (`127.0.0.1:3010`); клиент NetBird (нужен `/dev/net/tun`); Authentik (`127.0.0.1:9000`) — опционально, по умолчанию выкл. |
|
||||
| **CT 903** | `netcore` | `192.168.1.108` | `core-mon` | VictoriaMetrics (`:8428`), vmalert (`127.0.0.1:8880`), Alertmanager (`:9093`), Grafana (`:3000`), Ntfy (`:80`) |
|
||||
| **CT 904** | `netcore` | `192.168.1.105` | `core-git` | Gitea (`:3000`, git SSH `:222`), Postgres, Actions Runner (`dind`); cAdvisor (`:9101`) |
|
||||
|
||||
### 1.3. Внешние узлы
|
||||
| Имя | IP | Роль | Стек |
|
||||
@@ -65,6 +67,9 @@ API Endpoint (внутренний LAN): `http://192.168.1.102:8080/api`
|
||||
- `RUNNER_SSH_KEY`: приватный SSH-ключ раннера (ed25519) для деплоя на хосты.
|
||||
- `TF_STATE_TOKEN`: токен доступа к HTTP State Backend Gitea.
|
||||
- `CLOUDFLARE_API`: API-токен Cloudflare (Zone DNS Edit для `gunis.top`, DNS-01 сертификаты ноды).
|
||||
- `/services/gitea`:
|
||||
- `POSTGRES_PASSWORD`: пароль БД Postgres и `GITEA__database__PASSWD` (один и тот же).
|
||||
- `GITEA_RUNNER_REGISTRATION_TOKEN`: опционально; нужен только для первичной регистрации runner без файла `runner-data/.runner` (после миграции тома токен не нужен).
|
||||
- `/VPS`:
|
||||
- `PASS_GER_NOD_02`: первичный root-пароль `ger-nod-02` (только bootstrap; после роли `host` вход по ключу).
|
||||
- `/services/infisical`:
|
||||
|
||||
Reference in new issue
Block a user