cc503988c07dfb4f8d03e9a00088430bfc44c9f9
Sync runner checkout / sync (push) Successful in 6s
## Summary - Closes [#14](#14). - Register `monica_site` in `app_catalog` (`type: django`, repo `ai_ml_operations/monica_site`, default branch `main`) and `host_apps` on **adama**, **roslin**, and **ai-server-4080** (prod **8004**, beta **8014**). - Document NPM (`mkdrealtor.com` / `monica-preview.aimloperations.com`), Postgres DBs (`monica_site` / `monica_site_beta`), and **dj-queue worker singleton on adama** only (`compose --profile worker`). - List `monica_site` in `scripts/deploy.sh` `--app` help. ## Out of scope (manual ops) - Create Postgres DBs + grants on `10.0.0.230` - Control-node secrets under `~/Documents/secrets/monica_site/` - NPM proxy hosts (Ryan) - First deploy smoke + worker start on adama ## Test plan - [ ] Confirm inventory YAML parses (`ansible-inventory --list` or dry deploy) - [ ] Create DBs `monica_site` / `monica_site_beta` + secrets before smoke deploy - [ ] `./scripts/deploy.sh --app monica_site --env beta --ref main` - [ ] `./scripts/deploy.sh --app monica_site --env prod --ref main` - [ ] On **adama** only: `docker compose -f docker-compose.prod.yml --profile worker up -d` - [ ] Hit `/healthz/` on beta + prod; prod under-construction holding pageReviewed-on: #15
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 |
Languages
Jinja
63.3%
Shell
36.7%