- Make sure the variables set in ./group_vars are correctly defined.
- Sensitive variables below have to exist as environment variables within the shell running the script.
(You can create a .bashrc file and do a
source .bashrc
in your cloned repo and export these variables first.)- DOCKER_PW
- DOCKER_USER
- DOCKER_URL
# relative to working dir ./roles
...
+-- elk
| +-- files
| | +-- elasticsearch # edit config files + docker files here
| | +-- logstash # edit config files + docker files here
| | +-- kibana # edit config files + docker files here
...
+-- filebeat # this is for docker versions > 1.7.1, and docker-compose versions > 1.5.1
| +-- files # edit config files + docker files here
...
ansible-playbook build-image.yml -t build-fb -i ./hosts -u <user>
ansible-playbook deploy.yml -t deploy-fb -i ./hosts -u <user>
ansible-playbook deploy.yml -t update-fb-conf -i ./hosts -u <user>
ansible-playbook build-image.yml -t build-elk -i ./hosts -u <user>
ansible-playbook deploy.yml -t deploy-elk -i ./hosts -u <user>
ansible-playbook deploy.yml -t update-elk-conf -i ./hosts -u <user>
ansible-playbook deploy.yml -t setup-curator -i ./hosts -u <user>
ansible-playbook deploy.yml -t update-curator -i ./hosts -u <user>