Environment roles:
Additional information about role, You can find in README.md file in same folder
All playbooks avaible in playbooks folder. Run Playbooks you can follows:
ansible-playbook playbooks/your-role.yml
#Deploying Java Spring MVC web application via Ansible
#Infrastructure
###SPECIFICATION
Environment should have at list 2 application servers with any java containers (Tomcat/Jetty/JBoss/etc) and Nginx server with proxy_pass module enabled.
Should have one load balancer and one monitoring server with any tool configured (Zabbix, Cacti, Nagios, etc).
Environment should be deployed via vagrant up command.
Tools needed for Environment setup:
- Installed Virtualbox
- Installed Ansible (>=2.0.2 version)
- Installed Vagrant (>=1.8.1 version)
Ansible (>=2.0.2) version installed
Commons installed; Java 1.8 version installed; Maven installed; Jetty installed; Nginx installed; Deploy script installed;
Zabbix installed;
Haproxy installed;
Deploy process instruction:
Clone git project to vagrant host.
https://github.com/neb0t/mgmt.git
#Local infrastructure opened on Vagrant VirtualBox
OS: CentOS 7
Network: 10.0.26.0/24
- [ansible]
- ansible (10.0.26.101)
- [lb] -haproxy (10.0.26.103)
- [monitoring]
- zabbix (10.0.26.102)
- [webapp]
- web1 (10.0.26.201)
- web2 (10.0.26.202)
Up/Down all virtual hosts vagrant up / vagrant halt
Up/Down single virtual host vagrant up app1 / vagrant halt app1
#Web-pages access
###Application servers app1: http://10.0.26.201:8080
app2: http://10.0.26.202:8080
###Web servers web1: http://10.0.26.201
web2: http://10.0.26.202
###Load balancer server lb: http://10.0.26.103
####LB Statistic page http://10.0.26.103:8080/stats
username: stat
password: statpass