refactor(deploy): rename quinn-mcp fleet key data → analytics
Complete the quinn-data → quinn-analytics rename into the deploy fleet: the
SRC_DIR/PORT key becomes `analytics` (systemd instance quinn-mcp@analytics,
:3914). Supersedes the interim 'instance key stays data' note from b550c637.
Deploy follow-up (manual, not run here): stop+disable the now-orphaned
quinn-mcp@data unit on black after the next quinn.mcp deploy brings up
quinn-mcp@analytics on :3914.
This commit is contained in:
parent
1db3770185
commit
bc18690103
1 changed files with 7 additions and 7 deletions
|
|
@ -22,14 +22,14 @@ declare -A SRC_DIR=(
|
|||
[admin]="codebase/@features/admin/mcp-server"
|
||||
[prospector]="codebase/@features/api/src/mcp-prospector"
|
||||
[messenger]="codebase/@features/quinn-messenger/mcp" # quinn.messenger MCP implementation (server key 'quinn-messenger')
|
||||
[data]="codebase/@features/user-data/mcp-server" # quinn-analytics MCP (client key 'quinn-analytics'); systemd instance key kept as 'data' (quinn-mcp@data, :3914)
|
||||
[analytics]="codebase/@features/user-data/mcp-server" # quinn-analytics MCP (client key 'quinn-analytics'); systemd instance quinn-mcp@analytics, :3914
|
||||
)
|
||||
declare -A PORT=(
|
||||
[my]=3910
|
||||
[admin]=3911
|
||||
[prospector]=3912
|
||||
[messenger]=3913
|
||||
[data]=3914
|
||||
[analytics]=3914
|
||||
)
|
||||
|
||||
SKIP_BUILD=false
|
||||
|
|
@ -37,11 +37,11 @@ SERVERS=()
|
|||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--skip-build) SKIP_BUILD=true ;;
|
||||
my|admin|prospector|messenger|data) SERVERS+=("$arg") ;;
|
||||
my|admin|prospector|messenger|analytics) SERVERS+=("$arg") ;;
|
||||
*) echo "Unknown argument: $arg" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
[[ ${#SERVERS[@]} -eq 0 ]] && SERVERS=(my admin prospector messenger data)
|
||||
[[ ${#SERVERS[@]} -eq 0 ]] && SERVERS=(my admin prospector messenger analytics)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# [1/4] Build node bundles
|
||||
|
|
@ -62,16 +62,16 @@ for name in "${SERVERS[@]}"; do
|
|||
ssh "$REMOTE" sudo bash -euo pipefail <<ENDSSH
|
||||
mkdir -p /etc/quinn-mcp
|
||||
ENV_FILE=/etc/quinn-mcp/${name}.env
|
||||
# quinn-data env provisioning: ANALYTICS_RO_DATABASE_URL must already exist in the file
|
||||
# quinn-analytics env provisioning: ANALYTICS_RO_DATABASE_URL must already exist in the file
|
||||
# (the analytics_ro password is never auto-generated — provision it manually first).
|
||||
# Once the DSN is in place, we append MCP_HTTP_PORT and MCP_AUTH_TOKEN if missing.
|
||||
if [[ "${name}" == "data" ]]; then
|
||||
if [[ "${name}" == "analytics" ]]; then
|
||||
if [[ ! -f "\$ENV_FILE" ]] || ! grep -q '^ANALYTICS_RO_DATABASE_URL=' "\$ENV_FILE" 2>/dev/null; then
|
||||
echo "ERROR: ANALYTICS_RO_DATABASE_URL is not set in \$ENV_FILE." >&2
|
||||
echo " Create \$ENV_FILE with:" >&2
|
||||
echo " ANALYTICS_RO_DATABASE_URL=postgres://analytics_ro:<pw>@10.9.0.1:25434/lilith_analytics" >&2
|
||||
echo " The analytics_ro password lives in the credentials vault — never auto-generate." >&2
|
||||
echo " Then re-run: ./deploy.sh data" >&2
|
||||
echo " Then re-run: ./deploy.sh analytics" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Append MCP vars if not already set (idempotent).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue