fix(remnawave): populate Cascade-RU-DE clients via squad and surface sync_remnawave errors
ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Failing after 14s

This commit is contained in:
karpenok committed 2026-11-18 13:47:00 +07:00
1 parent 0a963c4150
commit 0c308bf7fe
3 files changed
+23 -2

No files matched your search

@@ -2,6 +2,15 @@
"log": {
"loglevel": "warning"
},
"dns": {
"servers": [
{
"address": "https://dns.google/dns-query",
"skipFallback": false
}
],
"queryStrategy": "UseIP"
},
"inbounds": [
{
"tag": "__INBOUND_TAG__",
@@ -212,9 +212,14 @@ def ensure_cascade_credentials(
if has_cascade_inb and ru_prof:
return {}
_, users_resp = api.request("GET", "/users/")
users_list = _extract_list(users_resp, "users")
homelab_user = next((u for u in users_list if u.get("username") == "homelab"), None)
cascade_uuid = (homelab_user or {}).get("vlessUuid") or str(uuid.uuid4())
priv, pub = generate_x25519(api)
creds = {
"uuid": str(uuid.uuid4()),
"uuid": cascade_uuid,
"priv": priv,
"pub": pub,
"short_id": secrets.token_hex(8),
@@ -669,6 +674,7 @@ def main() -> int:
api, node_cfg, cfg.get("profile_templates", {}), cascade_creds, changes
)
inbound_uuids.append(inbound_uuid)
inbound_uuids.extend(extra_inbound_uuids)
sync_node_and_host(
api,
node_cfg,