Add pre-flight check scripts and organized deployment folders
This commit is contained in:
parent
9cfe3dc69e
commit
b94ddfad47
3 changed files with 15 additions and 14 deletions
|
|
@ -1,19 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# --- Styling ---
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
NC='\033[0m'
|
||||
|
||||
echo -e "${YELLOW}=== Sechpoint Wallarm PRE-DEPLOYMENT-TEST ===${NC}"
|
||||
echo "Please answer the following questions to verify VM readiness."
|
||||
echo "-------------------------------------------------------"
|
||||
echo -e "${YELLOW}=== Wallarm Pre-Deployment Diagnostic ===${NC}"
|
||||
|
||||
# 1. Interactive Input
|
||||
read -p "Enter Application Server IP/Hostname: " APP_HOST
|
||||
read -p "Enter Application Server Port (e.g. 8080): " APP_PORT
|
||||
echo ""
|
||||
# --- THIS IS THE INTERACTIVE PART ---
|
||||
# The '-p' flag stands for 'prompt'
|
||||
read -p "Enter the Application Server IP or Hostname: " APP_HOST
|
||||
read -p "Enter the Application Server Port (e.g., 80 or 8080): " APP_PORT
|
||||
|
||||
# Check if they actually typed something
|
||||
if [ -z "$APP_HOST" ] || [ -z "$APP_PORT" ]; then
|
||||
echo "❌ Error: Application Server and Port are required."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "Testing connection to ${APP_HOST} on port ${APP_PORT}...\n"
|
||||
# --- End of Interactive Part ---
|
||||
|
||||
# 2. Check Sudo & Update Packages
|
||||
echo -e "${YELLOW}[1/4] Checking Sudo & Updating Package Lists...${NC}"
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
app1:
|
||||
- url: shorty.sechpoint.app
|
||||
- ip: 10.0.0.14:80
|
||||
-
|
||||
Loading…
Reference in a new issue