This will Deploy Java App on Tomcat Server with Nginx as a Reverse Proxy Server. Prometheus and Grafana will be deployed for Monitoring.
- Centos 7
- Ansible 2.2.1.0
- Selinux Disabled
- Add ssh key of root user to given instance.
- Update the Inventory Files
- Update vars for Each in there respective directory like :-
roles/tomcat/vars/main.yml
ansible-playbook main.yml -i inventory
Update your hosts file with following entries.
* <ip address of centos 7 machine>
* tomcat.demo.com
* promethous.demo.com
* grafana.demo.com
Note: You need to add data source in grafana dashboard manually to view graphs for mysql and application monitoring. Name should be "Prometheus" of datasource.
Add following mentioned json file for Graphs to Grafana Dashboard. add all the json file from graph folder to grafana server
ansible-playbook backup.yml -i inventory
ansible-playbook restore.yml -i inventory