docs: archive entra materials and simplify deployment docs
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Phase 2: Sankofa Phoenix Target Preparation
|
||||
# Validate the Proxmox / CT targets used by the Phoenix-native deployment flow.
|
||||
#
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "${SCRIPT_DIR}/config.sh"
|
||||
|
||||
log_info "=========================================="
|
||||
log_info "Phase 2: Sankofa Phoenix Target Preparation"
|
||||
log_info "=========================================="
|
||||
|
||||
log_step "2.1 Verifying Proxmox and CT targets..."
|
||||
check_proxmox_access
|
||||
|
||||
ssh ${SSH_OPTS} "${PROXMOX_SSH_USER}@${ORDER_PORTAL_PUBLIC_HOST}" \
|
||||
"pct status ${ORDER_PORTAL_PUBLIC_VMID}" \
|
||||
|| error_exit "Failed to verify Order public CT placement on ${ORDER_PORTAL_PUBLIC_HOST}"
|
||||
|
||||
ssh ${SSH_OPTS} "${PROXMOX_SSH_USER}@${ORDER_HAPROXY_HOST}" \
|
||||
"pct status ${ORDER_HAPROXY_VMID}" \
|
||||
|| error_exit "Failed to verify Order HAProxy placement on ${ORDER_HAPROXY_HOST}"
|
||||
|
||||
log_step "2.2 Previewing The Order edge configuration..."
|
||||
env \
|
||||
ORDER_HAPROXY_BACKEND_HOST="${ORDER_HAPROXY_BACKEND_HOST}" \
|
||||
ORDER_HAPROXY_BACKEND_PORT="${ORDER_HAPROXY_BACKEND_PORT}" \
|
||||
PROXMOX_ORDER_HAPROXY_NODE="${ORDER_HAPROXY_HOST}" \
|
||||
bash "${PROJECT_ROOT}/../scripts/deployment/provision-order-haproxy-10210.sh" --dry-run \
|
||||
|| log_warning "Unable to preview order-haproxy config from the parent Proxmox workspace"
|
||||
|
||||
log_step "2.3 Probing Sankofa Phoenix public health..."
|
||||
curl -fsS "${SANKOFA_PHOENIX_URL}/health" >/dev/null \
|
||||
&& log_success "Phoenix public health check passed" \
|
||||
|| log_warning "Phoenix public health check failed or is not exposed at /health"
|
||||
|
||||
save_state "phase2" "complete"
|
||||
|
||||
log_success "=========================================="
|
||||
log_success "Phase 2: Sankofa Phoenix Target Preparation - COMPLETE"
|
||||
log_success "=========================================="
|
||||
Reference in New Issue
Block a user