Files
wevads-platform/scripts/ovh-vps-setup.sh
2026-03-13 15:25:58 +01:00

55 lines
2.4 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
###############################################################################
# OVH VPS SETUP - WEVAL EXTENSION
# vps-288a427f.vps.ovh.net - 6 vCores, 12GB RAM, 100GB
# Zone: Gravelines (GRA) - France
###############################################################################
VPS_HOST="vps-288a427f.vps.ovh.net"
VPS_CONFIG="VPS-2: 6vCores, 12GB RAM, 100GB SSD"
VPS_ZONE="Gravelines (GRA) - France"
echo "═══════════════════════════════════════════════════════════════════════════════"
echo " OVH VPS SETUP - $VPS_HOST"
echo " Config: $VPS_CONFIG"
echo " Zone: $VPS_ZONE"
echo "═══════════════════════════════════════════════════════════════════════════════"
# Test connexion
echo "▶ Test connexion OVH VPS..."
if timeout 5 nc -z $VPS_HOST 22 2>/dev/null; then
echo " ✅ SSH accessible"
VPS_STATUS="ACCESSIBLE"
else
echo " ❌ SSH inaccessible - En cours de provisioning"
VPS_STATUS="PROVISIONING"
fi
# Configuration recommandée pour WEVAL extension
echo ""
echo "▶ CONFIGURATION RECOMMANDÉE:"
echo " 🔧 Rôle: S999 - Extension WEVAL (Backup/Test/Dev)"
echo " 🔧 Services: nginx + PostgreSQL + Redis"
echo " 🔧 Backup: S89 → S999 sync quotidien"
echo " 🔧 Test: Environment isolé pour nonreg"
echo " 🔧 Dev: Sandbox pour nouveaux features"
# Script setup initial
if [ "$VPS_STATUS" = "ACCESSIBLE" ]; then
echo ""
echo "▶ COMMANDES SETUP (à exécuter sur le VPS):"
echo "apt update && apt upgrade -y"
echo "apt install -y nginx postgresql-14 redis-server curl wget"
echo "ufw allow 22,80,443,5432,6379"
echo "systemctl enable nginx postgresql redis"
fi
echo ""
echo "▶ INTÉGRATION WEVAL:"
echo " 📊 Ajout dans dashboard Ultimate Quality"
echo " 📊 Test réseau depuis S89/S88/S202"
echo " 📊 Backup automatique adx_system → OVH"
echo " 📊 Monitoring TOC+Lean+6σ étendu"
echo "═══════════════════════════════════════════════════════════════════════════════"