Add swarm config

This commit is contained in:
lif
2025-10-10 19:36:51 +01:00
parent 520fef57a1
commit 069ac709e1
9 changed files with 594 additions and 285 deletions

View File

@@ -112,25 +112,24 @@ show_help() {
echo " help Show this help message"
echo ""
echo "Machines:"
echo " host Host machine (192.168.56.1)"
echo " machine1 Machine 1 (192.168.56.10)"
echo " machine2 Machine 2 (192.168.56.11)"
echo " machine3 Machine 3 (192.168.56.12)"
echo " machine4 Machine 4 (192.168.56.13)"
echo " swarm-manager Swarm Manager (192.168.56.10)"
echo " swarm-worker1 Swarm Worker 1 (192.168.56.11)"
echo " swarm-worker2 Swarm Worker 2 (192.168.56.12)"
echo " swarm-worker3 Swarm Worker 3 (192.168.56.13)"
echo ""
echo "Ansible Commands:"
echo " ping Test connectivity to all hosts"
echo " setup Install dependencies (Python, tools, swap)"
echo " deploy Deploy applications and services"
echo " setup Install dependencies (Python, Docker, swap)"
echo " deploy Deploy Docker Swarm cluster"
echo " list List all hosts"
echo " facts Gather system facts"
echo ""
echo "Examples:"
echo " $0 start # Start all machines"
echo " $0 ssh host # Access host machine"
echo " $0 ssh swarm-manager # Access swarm manager"
echo " $0 ansible ping # Test Ansible connectivity"
echo " $0 ansible setup # Install dependencies"
echo " $0 ansible deploy # Deploy applications"
echo " $0 ansible deploy # Deploy Docker Swarm cluster"
}
# Main script logic