Files
infrastructure/group_vars/all/vault_codesearch.yml
Leonidas SpyropoulosandLeonidas Spyropoulos a37df93f21 feat(codesearch): implement zoekt-based code search role
Add complete codesearch role with zoekt implementation. Zoekt provides
disk-based sharded indexing that avoids OOM issues on 8GB systems,
with per-package .zoekt shard files and automatic discovery.

- Implement fetch-sources script that clones archlinux/packaging/state
  to determine current package list and versions, then downloads
  PKGBUILDs and upstream sources from GitLab with parallel job support
  and idempotent re-runs
- Add zoekt-webserver systemd service for search frontend
- Add zoekt-index service/timer for incremental index generation
- Configure nginx reverse proxy to port 6070 with TLS
- Set up firewall rules for HTTP/HTTPS and monitoring access

Architecture:
- codesearch-extract.timer: Daily fetch trigger
- codesearch-extract.service: Runs fetch-sources to download sources
- codesearch-index.timer: Runs every 5 minutes after extraction
- codesearch-index.service: Builds zoekt shards
- codesearch-webserver.service: Serves search UI from disk shards

Fixes: infrastructure#808

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2026-05-26 14:40:32 +01:00

15 lines
1003 B
YAML

$ANSIBLE_VAULT;1.1;AES256
65383761343462323264343034336462343339353865613436303464363063623366306333646138
3765633565613936396231316537643734343161336337320a303639346637613133616637356439
66316230663336306439316362333338313962316636393636356530666164653839383864373765
6635396439393439300a336232643236313130666164313834356431356130376132383534396663
39333035353761663532343936393565343866646265353065356163336430623235336334663664
39613132653137303265616333646666653863636539316366613435613035613835393738656261
31656238313636313138356630316534323033653134383639303633653534303562303736353938
64616138623730623261663363353335613139386163323562386566383861636231373233373130
63616338333566323039383463613665326438316564376264393265393037623239356632343236
35396566376632373735363830303938346632333138663531353931653763363039303465663235
62396563613464323432353061346564356333326135386463623032343764356337373262373962
63623566666331333238323862343562383337653933626135316163346134323536383536306438
3265