Some checks failed
Test / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
68 lines
1.8 KiB
Bash
Executable File
68 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
source ~/.bashrc
|
|
# Quick Deployment Script - Without Azure Arc
|
|
# Deploys infrastructure stack without Azure dependencies
|
|
|
|
set -e
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
|
|
echo "========================================="
|
|
echo "Deployment Without Azure Arc"
|
|
echo "========================================="
|
|
echo ""
|
|
echo "This script will guide you through deployment"
|
|
echo "without Azure Arc integration."
|
|
echo ""
|
|
echo "Press Enter to continue or Ctrl+C to cancel..."
|
|
read
|
|
|
|
# Load environment variables
|
|
if [ -f .env ]; then
|
|
source <(grep -v '^#' .env | grep -v '^$' | sed 's/#.*$//' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' | grep '=')
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Phase 1: Verify Proxmox Cluster ==="
|
|
echo "Testing Proxmox connections..."
|
|
./scripts/utils/test-proxmox-connection.sh
|
|
|
|
echo ""
|
|
echo "=== Phase 2: Create Service VMs ==="
|
|
echo "Choose deployment method:"
|
|
echo "1. Use Terraform (automated)"
|
|
echo "2. Manual via Proxmox UI"
|
|
read -p "Choice [1-2]: " vm_choice
|
|
|
|
if [ "$vm_choice" = "1" ]; then
|
|
echo "Using Terraform for VM creation..."
|
|
cd terraform/proxmox
|
|
terraform init
|
|
terraform plan
|
|
echo "Review plan above, then run: terraform apply"
|
|
else
|
|
echo "Create VMs manually via Proxmox UI:"
|
|
echo " - K3s VM: 192.168.1.188"
|
|
echo " - Cloudflare Tunnel VM: 192.168.1.60"
|
|
echo " - Git Server VM: 192.168.1.121"
|
|
echo " - Observability VM: 192.168.1.82"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Phase 3: Cloudflare Tunnel Setup ==="
|
|
echo "Tunnel token available: ${CLOUDFLARE_TUNNEL_TOKEN:0:10}***"
|
|
echo "See DEPLOYMENT_WITHOUT_AZURE.md for detailed setup"
|
|
|
|
echo ""
|
|
echo "=== Phase 4: Kubernetes Deployment ==="
|
|
echo "Once K3s VM is ready, run:"
|
|
echo " ssh ubuntu@192.168.1.188"
|
|
echo " curl -sfL https://get.k3s.io | sh -"
|
|
|
|
echo ""
|
|
echo "=== Next Steps ==="
|
|
echo "See DEPLOYMENT_WITHOUT_AZURE.md for complete guide"
|