007f6cedc5
- Add docs/landscape.md and docker-inventory.md with Mermaid architecture - Add config/docker per host (db02, lake01, kafka01) and objectscale/elastic refs - Add live architecture page at icons/docs/architecture.html - Homepage OPS tab: Lakehouse Architecture group with diagram link - Add scripts/collect/collect-fleet-config.sh to refresh configs from fleet
25 lines
999 B
Bash
Executable File
25 lines
999 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pull live Docker/ObjectScale configs into the Lakehouse git repo.
|
|
# Run on atc-docker01 as root (requires SSH mesh).
|
|
set -euo pipefail
|
|
|
|
REPO="${REPO:-/root/lakehouse}"
|
|
KEY="${KEY:-/root/.ssh/atc_cluster}"
|
|
SSH=(ssh -i "$KEY" -o StrictHostKeyChecking=no -o ConnectTimeout=10)
|
|
|
|
echo "==> db02 docker-compose"
|
|
"${SSH[@]}" root@atc-db02 "cat /opt/sources/docker-compose.yml" > "$REPO/config/docker/atc-db02/docker-compose.yml"
|
|
|
|
echo "==> objectscale deploy.yml (redacted)"
|
|
"${SSH[@]}" root@atc-objectscale "cat /opt/emc/ecs-install/deploy.yml" | \
|
|
sed -E 's/(ssh_password|ansible_become_pass):.*/\1: "REDACTED"/' \
|
|
> "$REPO/config/objectscale/deploy.yml"
|
|
|
|
echo "==> elasticsearch.yml"
|
|
"${SSH[@]}" root@atc-elastic01 "cat /etc/elasticsearch/elasticsearch.yml" > "$REPO/config/elastic/elasticsearch.yml"
|
|
|
|
echo "==> container inventory"
|
|
"$REPO/scripts/deploy/export-inventory.py" "$REPO/inventory/containers-atc-docker01.json"
|
|
|
|
echo "Done. Review and commit: cd $REPO && git diff"
|