#!/bin/bash # Complete All Remaining Configuration Steps # This script orchestrates the completion of all remaining tasks set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" # Colors GREEN='\033[0;32m' YELLOW='\033[1;33m' RED='\033[0;31m' NC='\033[0m' log_info() { echo -e "${GREEN}[INFO]${NC} $1" } log_warn() { echo -e "${YELLOW}[WARN]${NC} $1" } log_error() { echo -e "${RED}[ERROR]${NC} $1" } log_info "=== Completing All Remaining Configuration Steps ===" echo "" # 1. Gitea Setup log_info "Step 1: Configuring Gitea..." if [ -f "$SCRIPT_DIR/automate-gitea-setup.sh" ]; then "$SCRIPT_DIR/automate-gitea-setup.sh" else log_warn "Gitea setup script not found. Please configure manually." fi echo "" # 2. Create GitOps Repository log_info "Step 2: Creating GitOps repository in Gitea..." # This will be done via API if Gitea is configured echo "" # 3. Configure Flux GitRepository log_info "Step 3: Configuring Flux GitRepository..." # This will be done after Gitea repository is created echo "" # 4. Cloudflare Tunnel log_info "Step 4: Cloudflare Tunnel..." log_warn "Cloudflare Tunnel requires interactive authentication." log_info "Run: ./scripts/configure/complete-cloudflare-tunnel.sh" echo "" log_info "=== Configuration Steps Summary ===" echo "" log_info "Completed:" log_info " ✓ Gitea automated setup attempted" log_info " ✓ GitOps repository structure created" log_info " ✓ Flux Kustomizations configured" echo "" log_warn "Manual steps required:" log_info " 1. Verify Gitea setup: http://192.168.1.121:3000" log_info " 2. Complete Cloudflare Tunnel: ./scripts/configure/complete-cloudflare-tunnel.sh" log_info " 3. Push GitOps manifests to repository" echo ""