Use the vagrant file provided to provision all nodes. Vagrantfile given will spawn 3 application nodes(centos 6) and 1 ansible toolbox to run the ansible script.
Steps to Deploy:-
-
vagrant up
-
vagrant ssh ansible-toolbox
-
cd /vagrant/ansible/
-
Run
a.ansible-playbook -i hosts setup-haproxy.yml
b.
ansible-playbook -i hosts setup-app.yml
TEST:
From inside Ansible-Toolbox Host (inside vagrant network bridge)
curl http://192.168.30.1
From Outside Vagrant Network:
curl http://192.168.30.1:9081