From 33417a28c57d1b4b8b05adde72ee039328242915 Mon Sep 17 00:00:00 2001 From: Eric Fode Date: Wed, 5 Nov 2014 12:55:53 -0800 Subject: [PATCH 1/4] Update README.md Added basic Getting started --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0748649e..a6d3b5ed 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,15 @@ Include `consul::ui` in your node's `run_list`: action :delete end +#### Getting Started +To bootstrap a consul cluster follow the following steps: +1. Bootstrap a few (preferablly 3 nodes) to be your consul servers, these will be the KV masters. +2. Put `node['consul']['servers'] =["Array of the bootstrapped servers ips or dns names"]` in your environment. +2. Apply the consul cookbook to these nodes with `node['consul']['service_mode'] = 'cluster'` (I put this in this in a CONSUL_MASTER role). +3. Let these machines converge, once you can run `consul members` and get a list of all of the servers your ready to move on +4. Apply the consul cookbook to the rest of your nodes with `node['consul']['service_mode'] = 'client'` (I put this in the environment) +5. Start added services and checks to your cookbooks. +6. If you want to get values out of consul to power your chef, curl localhost:8500/v1/kv/key/path?raw in your cookbook. ## Authors Created and maintained by [John Bellone][3] [@johnbellone][2] () and a growing community of [contributors][4]. From dac38871840e829ea7a18729b1bdaba74219c735 Mon Sep 17 00:00:00 2001 From: Eric Fode Date: Wed, 5 Nov 2014 14:59:10 -0800 Subject: [PATCH 2/4] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a6d3b5ed..7648648b 100644 --- a/README.md +++ b/README.md @@ -271,15 +271,16 @@ Include `consul::ui` in your node's `run_list`: action :delete end -#### Getting Started +#### Getting Started To bootstrap a consul cluster follow the following steps: -1. Bootstrap a few (preferablly 3 nodes) to be your consul servers, these will be the KV masters. -2. Put `node['consul']['servers'] =["Array of the bootstrapped servers ips or dns names"]` in your environment. -2. Apply the consul cookbook to these nodes with `node['consul']['service_mode'] = 'cluster'` (I put this in this in a CONSUL_MASTER role). -3. Let these machines converge, once you can run `consul members` and get a list of all of the servers your ready to move on -4. Apply the consul cookbook to the rest of your nodes with `node['consul']['service_mode'] = 'client'` (I put this in the environment) -5. Start added services and checks to your cookbooks. -6. If you want to get values out of consul to power your chef, curl localhost:8500/v1/kv/key/path?raw in your cookbook. + + 1. Bootstrap a few (preferablly 3 nodes) to be your consul servers, these will be the KV masters. + 2. Put `node['consul']['servers'] =["Array of the bootstrapped servers ips or dns names"]` in your environment. + 3. Apply the consul cookbook to these nodes with `node['consul']['service_mode'] = 'cluster'` (I put this in this in a CONSUL_MASTER role). + 4. Let these machines converge, once you can run `consul members` and get a list of all of the servers your ready to move on + 5. Apply the consul cookbook to the rest of your nodes with `node['consul']['service_mode'] = 'client'` (I put this in the environment) + 6. Start added services and checks to your cookbooks. + 7. If you want to get values out of consul to power your chef, curl localhost:8500/v1/kv/key/path?raw in your cookbook. ## Authors Created and maintained by [John Bellone][3] [@johnbellone][2] () and a growing community of [contributors][4]. From 01ae869d3c0f81371c8224168693fd2c15a219b5 Mon Sep 17 00:00:00 2001 From: Eric Fode Date: Wed, 5 Nov 2014 15:00:04 -0800 Subject: [PATCH 3/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7648648b..d8d8e4bc 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,7 @@ To bootstrap a consul cluster follow the following steps: 5. Apply the consul cookbook to the rest of your nodes with `node['consul']['service_mode'] = 'client'` (I put this in the environment) 6. Start added services and checks to your cookbooks. 7. If you want to get values out of consul to power your chef, curl localhost:8500/v1/kv/key/path?raw in your cookbook. + ## Authors Created and maintained by [John Bellone][3] [@johnbellone][2] () and a growing community of [contributors][4]. From 2eefb658f1adaa71dd2ad78a652bc9562c86d743 Mon Sep 17 00:00:00 2001 From: Eric Fode Date: Wed, 5 Nov 2014 15:00:50 -0800 Subject: [PATCH 4/4] Update README.md Typos and grammer