Overview:
This is follow up automation setup from previous project of Multi-tire Web Application, we will see how to setup all the stack automatically.
We are going to run just Vagrant up command, all vm will provision automatically, and all the servers will provision automatically.
similar design like previous project except here we have bash scrip that will execute our servers automatically, this bash scrip will provision all our services.
GitHub
Virtual box
Sublet Text editor
GitHub:
We gonna run all our command in GitHub, and will bring up all the virtual machine from GitHub.
How to download GitHub:
https://desktop.github.com/
https://github.com/
Virtual box:
This is where we gonna see all our server.
To Install Virtual box Click the below link and signup.
https://www.virtualbox.org/wiki/Downloads
Sublet Text Editor:
we use sublet text editor is it see Vagrantfile and its very easy to understand compare to other txt editors.
To install Sublet Text editor clik the link below.
https://www.sublimetext.com/
Signup from the above link for all the tools.
STEPS TO COMPLETE OUR FIRST Project
Set up tools
Clone source code
Cd into vagrant dir.
Bring up VM'source
Check Vm are running.
Setup Servers
MySQL
Memcached
RabbitMQ
Tomcat
Nginx
App Build & Deploy
Verify from browser.
These are Pre-requisites
Virtual box
Vagrant and its Plugins
Git bash for this project
Hope by this time we should install all this in our machine.
Servers Details:
MySQL---------------Database
Memcached---------DB Caching
RabbitMQ---------------Broker
Tomcat-----------Application Server
Ngnix-----------------Web Server
We need to download the server only in the below mentioned Order.
MySQL is for Database
Memcached is for Caching SVC
RabbitMQ Broker between SVC
Tomcat APPLICATION SVC
Ngnix Web SVC
Before Bring up Virtual box we need to setup these.
1.clone source code from github repo.(Need to copy that repo to our machine)
https://github.com/devopshydclub/vprofile-project.git
Cd into repo---->Switch to local-setup branch ( Local-setup is where we have vagrant file to bring up all vm server)---->cd into vagrant file.-----> After this command do ls ----> Automated_provisioning Manual_provisoning ------>we have two file under vagrant file for pervious project we used maual_provisoning file this project we gonna use automate_provisioning file.-------->cd to automation_provisioning ---->ls --->vagrant file---> all our scrips are under vagrant file mysql,Memcached,rabbitmq,tomcat,application,Ngnix.
Just we gonna do only Vagrantup command in gitbash.
gitbash
cd vprofile-project--------> cd vagrant-------> cd automated_provision----> vagrant up--->This command will bringing up all the server.
Validate our stack
Get the ip from vagrant file or server name --->Goto web browser --->http://webapp01(this will send request to Tomcat)
This is bring into login page.
Its very simple command and our Automated setup of Multi Tier app is working.