westfarn 7e48c22e3e
Sync runner checkout / sync (push) Successful in 7s
Deploy SearxNG on ai-server-4080 for chat_backend grounded search (#10) (#11)
## Summary
- Closes [#10](#10).
- Deploys **SearxNG** on **ai-server-4080** (`10.0.0.128`) for [chat_backend#62](ai_ml_operations/chat_backend#62) / [PR #65](ai_ml_operations/chat_backend#65) grounded search.
- New `roles/searxng/` (compose + JSON-enabled `settings.yml`), gated by `searxng_stack: true`, wired into `site.yml`.
- **Host port 8088** (not 8080 — that is `dta_webapp` on this host). UFW allows `10.0.0.0/24` → `8088/tcp` only.

## Ops after merge

```bash
./scripts/provision.sh ai-server-4080
# or targeted:
ansible-playbook playbooks/site.yml --limit ai-server-4080 --tags never  # full site play includes searxng when searxng_stack
```

Then set in `chat_backend_prod.env` / `chat_backend_beta.env`:

```text
SEARCH_PROVIDER=searxng
SEARCH_FAILOVER_PROVIDER=ddgs
SEARXNG_BASE_URL=http://10.0.0.128:8088
```

Smoke test from any app host:

```bash
curl -sG 'http://10.0.0.128:8088/search' --data-urlencode 'q=test' -d 'format=json' | head
```

## Test plan
- [ ] Provision ai-server-4080; confirm `docker ps` shows `searxng`
- [ ] Confirm `:8088` responds with JSON; `:8080` still serves dta_webapp
- [ ] Confirm UFW rule is LAN-only
- [ ] From adama/roslin container network, curl SearxNG succeeds
- [ ] Update chat_backend secrets to `:8088` and redeploy betaReviewed-on: #11
2026-08-02 11:33:38 -07:00
2026-07-10 06:50:52 -05:00
2026-07-06 15:34:49 -05:00
2026-07-08 05:59:11 -05:00
2026-07-10 06:50:52 -05:00
2026-07-06 15:34:49 -05:00

server-infra

Ansible provisioning and deployment for homelab web servers.

Quick Start

# Install collections (once)
ansible-galaxy collection install -r requirements.yml

# Bootstrap SSH key to each host (one-time, before Ansible)
ssh-copy-id westfarn@10.0.0.77
ssh-copy-id westfarn@10.0.0.176

# First-time only: passwordless sudo on each new host (before first provision)
ssh -t westfarn@10.0.0.176   # repeat for each host IP
# on the host:
echo 'westfarn ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/westfarn
sudo chmod 440 /etc/sudoers.d/westfarn
exit

# Test connectivity to one host
ansible adama -m ping

# Provision one host (dry run first) — includes Alloy log/metrics agent
./scripts/provision.sh adama --check
./scripts/provision.sh adama

# Control node: Alloy + Loki + Prometheus + Grafana
./scripts/provision.sh ai-server-4080

# Provision all hosts
./scripts/provision.sh

See IMPLEMENTATION.md for full architecture, CI/CD plan, and phase breakdown.

Observability (Alloy → Loki / Prometheus → Grafana): docs/OBSERVABILITY.md · docs/GRAFANA_USAGE.md

Provision installs Alloy on every host. On ai-server-4080 it also starts the central Loki / Prometheus / Grafana stack (observability_stack: true).

Servers

Host IP Role
adama 10.0.0.77 app host
roslin 10.0.0.176 app host
ai-server-4080 10.0.0.128 control node + act runner
S
Description
No description provided
Readme
198 KiB
Languages
Jinja 71.5%
Shell 28.5%