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
|
#!/bin/bash
|
||||||
|
|
||||||
# --- Styling ---
|
# --- Styling ---
|
||||||
RED='\033[0;31m'
|
|
||||||
GREEN='\033[0;32m'
|
|
||||||
YELLOW='\033[1;33m'
|
YELLOW='\033[1;33m'
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m'
|
||||||
|
|
||||||
echo -e "${YELLOW}=== Sechpoint Wallarm PRE-DEPLOYMENT-TEST ===${NC}"
|
echo -e "${YELLOW}=== Wallarm Pre-Deployment Diagnostic ===${NC}"
|
||||||
echo "Please answer the following questions to verify VM readiness."
|
|
||||||
echo "-------------------------------------------------------"
|
|
||||||
|
|
||||||
# 1. Interactive Input
|
# --- THIS IS THE INTERACTIVE PART ---
|
||||||
read -p "Enter Application Server IP/Hostname: " APP_HOST
|
# The '-p' flag stands for 'prompt'
|
||||||
read -p "Enter Application Server Port (e.g. 8080): " APP_PORT
|
read -p "Enter the Application Server IP or Hostname: " APP_HOST
|
||||||
echo ""
|
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
|
# 2. Check Sudo & Update Packages
|
||||||
echo -e "${YELLOW}[1/4] Checking Sudo & Updating Package Lists...${NC}"
|
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