refactor(remnawave): синхронизировать панель из desired.yml и шаблонов команд
ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-mon, ) (push) Successful in 37s
ansible-deploy / deploy (core-net, ) (push) Failing after 52s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 24s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m20s
ansible-deploy / deploy (opnsense, ) (push) Successful in 13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m6s

Повторный прогон без смены compose не тянет образы, ноды и сквады добавляются данными, а не новым плейбуком на каждый VPS.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-18 17:18:49 +07:00
1 parent 89f928c64a
commit 99ee815213
22 files changed
+1151 -672

No files matched your search

@@ -4,25 +4,10 @@
# Секреты setup-ключей сохраняются в Infisical (/services/netbird) автоматически
# и не попадают в Git или логи CI.
# Управляемые группы пиров
# Группы exit-<hostname> для нод из desired.yml добавляет sync_access.py.
client_groups:
- exit-clients
- remnawave
- exit-ger-nod-02
# Выходные шлюзы (Exit Nodes)
exit_nodes:
- network_id: exit-ger-nod-02
description: "Exit Node DE (0.0.0.0/0 via ger-nod-02)"
peer: ger-nod-02
peer_group: exit-ger-nod-02
client_groups:
- exit-clients
metric: 9999
masquerade: true
keep_route: false
skip_auto_apply: false
enabled: true
# DNS для клиентских групп
dns_nameservers:
@@ -58,10 +43,6 @@ peers:
groups:
- remnawave
state: present
- name: "ger-nod-02"
groups:
- exit-ger-nod-02
state: present
# Zero-Trust политики доступа (заменяют дефолтную политику Default All <-> All).
# Инициировать соединения в сторону внешних нод могут только панель (core-net) и клиенты (exit-clients).
@@ -83,8 +64,7 @@ policies:
- "9101"
sources:
- remnawave
destinations:
- exit-ger-nod-02
destinations: "@remnawave_exit_groups"
- name: "exit-clients-to-exit-nodes"
description: "One-way traffic from Exit Node clients to Exit Nodes"
@@ -98,8 +78,7 @@ policies:
bidirectional: false
sources:
- exit-clients
destinations:
- exit-ger-nod-02
destinations: "@remnawave_exit_groups"
- name: "exit-clients-udp"
description: "Allow outbound UDP from exit-clients via exit node"
enabled: true
@@ -108,8 +87,7 @@ policies:
bidirectional: false
sources:
- exit-clients
destinations:
- exit-ger-nod-02
destinations: "@remnawave_exit_groups"
- name: "exit-clients-icmp"
description: "Allow ICMP for exit-clients via exit node"
enabled: true
@@ -118,5 +96,4 @@ policies:
bidirectional: true
sources:
- exit-clients
destinations:
- exit-ger-nod-02
destinations: "@remnawave_exit_groups"