ops: CCIP relay systemd unit, TsunamiSwap VM 5010 inventory script

- config/systemd/ccip-relay.service for /opt/smom-dbis-138/services/relay/start-relay.sh
- tsunamiswap-vm-5010-provision.sh checks qm status on PROXMOX_HOST
- AGENTS.md pointers for relay and TsunamiSwap

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-27 00:27:10 -07:00
parent 00afd38a57
commit b9d3c10d01
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# TsunamiSwap VM 5010 — inventory check + example qm lines (always informational).
# Ref: docs/00-meta/OPERATOR_READY_CHECKLIST.md section 5c.
#
# Usage: ./scripts/deployment/tsunamiswap-vm-5010-provision.sh
# Env: PROXMOX_HOST (default 192.168.11.11), TSUNAMI_VMID (5010)
#
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# shellcheck source=/dev/null
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
PROXMOX_HOST="${PROXMOX_HOST:-${PROXMOX_HOST_R630_01:-192.168.11.11}}"
VMID="${TSUNAMI_VMID:-5010}"
SSH_OPTS="-o BatchMode=yes -o ConnectTimeout=15 -o StrictHostKeyChecking=accept-new"
echo "=== TsunamiSwap VM ${VMID} on ${PROXMOX_HOST} ==="
if ssh $SSH_OPTS "root@${PROXMOX_HOST}" "qm status ${VMID} 2>/dev/null" | grep -q .; then
echo "Status: VMID ${VMID} exists."
ssh $SSH_OPTS "root@${PROXMOX_HOST}" "qm status ${VMID}"
exit 0
fi
echo "Status: VMID ${VMID} not found (still to provision)."
echo "Checklist target: r630-01, 8 vCPU, 16 GB RAM, ~160 GB, IP e.g. 192.168.11.91."
echo "Create with your Proxmox template/ISO, then run setup/deploy scripts if available."
exit 0