During the WarsJava microservice hackathon we will need to provision:
- elasticsearch
- redis
- logstash
- kibana
- graphite
- graphana
- zookeeper
- logstash-forwarder
- nexus
After provisioning just access http://IP_OF_YOUR_HOST with mylogger username and mylogger pass
If you provide tag
-t loggers
then you'll provision the module as a whole.
Example of a command to run it (assuming that you have a host inventory file):
ansible-playbook -i hosts microservice_hackathon.yml -vvvv -t "loggers"
Generate SSL keys by running:
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt
Copy the resultant .key and .crt files to
$ROOT/files/certs
You can also execute the provided script to do that:
generate_keys.sh
After provisioning you can access
- graphite at http://IP_OF_YOUR_HOST
- graphana at http://IP_OF_YOUR_HOST:8080
You have to provide graphite url as presented below (even if it is the same address as the server you are provisioning):
--extra-vars graphite_url=IP_OF_YOUR_HOST
to provision these modules. If you provide tag
-t graphite
then you'll provision the module as a whole.
Example of a command to run it (assuming that you have a host inventory file) with graphite_url variable:
ansible-playbook -i hosts microservice_hackathon.yml -vvvv -t "graphite" --extra-vars graphite_url=59.98.12.123
Example of a command to run it (assuming that you have a host inventory file) with graphite_url variable:
ansible-playbook -i hosts microservice_hackathon.yml -vvvv -t "apps" --extra-vars logstash_domain=59.98.12.123
playbook from: https://gist.github.com/gbirke/8314571
installed as a service that logs to syslog
After provisioning you can access Nexus at http://IP_OF_YOUR_HOST:8081/nexus/#welcome
If you provide tag
-t nexus
then you'll provision the module as a whole.
Example of a command to run it (assuming that you have a host inventory file):
ansible-playbook -i hosts microservice_hackathon.yml -vvvv -t "loggers"
Playbook origins
playbook from: https://github.com/valentinogagliardi/ansible-logstash
playbook from: https://github.com/valentinogagliardi/ansible-logstash
playbook from: https://github.com/valentinogagliardi/ansible-logstash
playbook from: https://github.com/valentinogagliardi/ansible-logstash
playbook from: https://gist.github.com/gbirke/8314571
playbook from: https://github.com/WeAreFarmGeek/ansible-logstash-forwarder configuration: /etc/logstash-forwarder installed as a service that logs to syslog
playbook from: https://github.com/marcingrzejszczak/ansible-sonatype-nexus