You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.2 KiB

  1. #!/bin/bash
  2. #
  3. BORDER="~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  4. printf "$BORDER Starting all 3 routers \n"
  5. printf "\n$BORDER Booting router 1 \n"
  6. cd routers/router1
  7. vagrant up
  8. echo "$BORDER Finished booting router 1"
  9. printf "\n$BORDER Booting router 2 \n"
  10. cd ../router2
  11. vagrant up
  12. echo "$BORDER Finished booting router 2"
  13. printf "\n$BORDER Booting router 3 \n"
  14. cd ../router3
  15. vagrant up
  16. echo "$BORDER Finished booting router 3"
  17. printf "\n$BORDER Booting gateway node\n"
  18. cd ../gateway
  19. vagrant up
  20. echo "$BORDER Finished booting gateway"
  21. cd ../..
  22. sleep 2
  23. RUNNERS=$(vboxmanage list runningvms)
  24. echo "Current running VMs: $RUNNERS"
  25. printf "$BORDER Booting the 3 edge nodes .. \n"
  26. printf "\n$BORDER Booting the client \n"
  27. cd edgers/client
  28. vagrant up
  29. echo "$BORDER Finished booting client.."
  30. printf "\n$BORDER Booting the vpn server \n"
  31. cd ../vpn-server
  32. vagrant up
  33. echo "$BORDER Finished booting vpn server.."
  34. printf "\n$BORDER Booting the web server \n"
  35. cd ../web-server
  36. vagrant up
  37. echo "$BORDER Finished booting web server.."
  38. #cd ../..
  39. #printf "\n\nRebooting all machines to take new network configs..\n\n\n"
  40. #sleep 2
  41. #./stop_all.sh
  42. #sleep 2
  43. #./start_all.sh