forked from https://github.com/hashicorp/consul/tree/master/demo/vagrant-cluster
This demo provides a very simple Vagrantfile that creates 3 nodes, one at "172.20.20.10", "172.20.20.11" and "172.20.20.12". Both are running a standard Ubuntu distribution and the script will install Consul and Web UI in all of them.
To get started, you can start the cluster by just doing:
$ vagrant up
Once it is finished, you should be able to see the following:
$ vagrant status
Current machine states:
n1 running (virtualbox)
n2 running (virtualbox)
n3 running (virtualbox)
At this point the two nodes are running and you can SSH in to play with them:
$ vagrant ssh n1
...
$ vagrant ssh n2
...
$ vagrant ssh n3
...
To learn more about starting Consul, joining nodes and interacting with the agent, checkout the getting started guide.
$ vagrant destroy -f