From 0c9b9a4874ae8b30d8c4fd92219918708b666364 Mon Sep 17 00:00:00 2001 From: Brian Shumate Date: Fri, 13 Jan 2017 11:03:10 -0500 Subject: [PATCH] Demo: configurable Consul version - Add CONSUL_DEMO_VERSION env var for specifying Consul version --- demo/vagrant-cluster/README.md | 13 +++++++++---- demo/vagrant-cluster/Vagrantfile | 18 ++++++++++++------ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/demo/vagrant-cluster/README.md b/demo/vagrant-cluster/README.md index bb23c5ba72..a54e8b1619 100644 --- a/demo/vagrant-cluster/README.md +++ b/demo/vagrant-cluster/README.md @@ -11,7 +11,7 @@ vagrant up ``` > NOTE: If you prefer a different Vagrant box, you can set the `DEMO_BOX_NAME` -> environment variable before Starting Vagrant like this: +> environment variable before starting `vagrant` like this: > `DEMO_BOX_NAME="ubuntu/xenial64" vagrant up` Once it is finished, you should be able to see the following: @@ -29,7 +29,7 @@ At this point the two nodes are running and you can SSH in to play with them: ``` vagrant ssh n1 consul version -Consul v0.7.1 +Consul v0.7.2 Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents) exit ``` @@ -39,12 +39,17 @@ and ``` vagrant ssh n2 consul version -Consul v0.7.1 +Consul v0.7.2 Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents) exit ``` +> NOTE: This demo will install the latest Consul release version by default, +> but if you prefer a different version, you can set the `CONSUL_DEMO_VERSION` +> environment variable before starting `vagrant` like this: +> `CONSUL_DEMO_VERSION=0.6.4 vagrant up` + ## Where to Next? -To learn more about starting Consul, joining nodes to a cluster, and +To learn more about starting Consul, joining nodes into a cluster, and interacting with the agent, check out the [Getting Started guide](https://www.consul.io/intro/getting-started/install.html). diff --git a/demo/vagrant-cluster/Vagrantfile b/demo/vagrant-cluster/Vagrantfile index da36fb106c..3bd3479ca1 100644 --- a/demo/vagrant-cluster/Vagrantfile +++ b/demo/vagrant-cluster/Vagrantfile @@ -1,16 +1,17 @@ # -*- mode: ruby -*- # vi: set ft=ruby : + $script = <