From 4209f378a33cb5506bffe9043980369bbc1e8742 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 10 Apr 2014 17:34:10 -0700 Subject: [PATCH] demo: Adding a basic vagrant file for a simple cluster --- demo/vagrant-cluster/README.md | 27 +++++++++++++++++++++++++ demo/vagrant-cluster/Vagrantfile | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 demo/vagrant-cluster/README.md create mode 100644 demo/vagrant-cluster/Vagrantfile diff --git a/demo/vagrant-cluster/README.md b/demo/vagrant-cluster/README.md new file mode 100644 index 000000000..3a29b607b --- /dev/null +++ b/demo/vagrant-cluster/README.md @@ -0,0 +1,27 @@ +# Vagrant Consul Demo + +This demo provides a very simple Vagrantfile that creates two nodes, +one at "172.20.20.10" and another at "172.20.20.11". Both are running +a standard Ubuntu 12.04 distribution, and Consul is pre-installed. + +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 (vmware_fusion) + n2 running (vmware_fusion) + +At this point the two nodes are running and you can SSH in to play with them: + + $ vagrant ssh n1 + ... + $ vagrant ssh n2 + ... + +To learn more about starting Consul, joining nodes and interacting with the agent, +checkout the [getting started guide](http://www.consul.io/intro/getting-started/install.html). + diff --git a/demo/vagrant-cluster/Vagrantfile b/demo/vagrant-cluster/Vagrantfile new file mode 100644 index 000000000..d9a5767b8 --- /dev/null +++ b/demo/vagrant-cluster/Vagrantfile @@ -0,0 +1,34 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : +$script = <