Skip to content

Commit

Permalink
Merge pull request #1127 from carlpett/master
Browse files Browse the repository at this point in the history
Fix missing config-dir in getting started guide
  • Loading branch information
armon committed Jul 22, 2015
2 parents c34bcb4 + 7308699 commit 3e9e575
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions demo/vagrant-cluster/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ unzip consul.zip
sudo chmod +x consul
sudo mv consul /usr/bin/consul
sudo mkdir /etc/consul.d
sudo chmod a+w /etc/consul.d
SCRIPT

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Expand Down
9 changes: 6 additions & 3 deletions website/source/intro/getting-started/join.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ multiple interfaces, so specifying a `bind` address assures that you will
never bind Consul to the wrong interface.

The first node will act as our sole server in this cluster, and we indicate
this with the [`server` switch](/docs/agent/options.html#_server).
this with the [`server` switch](/docs/agent/options.html#_server). Finally, we
add the [`config-dir` flag](/docs/agent/options.html#_config_dir), marking
where service and check definitions can be found.

All together, these settings yield a
[`consul agent`](/docs/commands/agent.html) command like this:

```text
vagrant@n1:~$ consul agent -server -bootstrap-expect 1 \
-data-dir /tmp/consul -node=agent-one -bind=172.20.20.10
-data-dir /tmp/consul -node=agent-one -bind=172.20.20.10 \
-config-dir /etc/consul.d
...
```

Expand All @@ -81,7 +84,7 @@ All together, these settings yield a

```text
vagrant@n2:~$ consul agent -data-dir /tmp/consul -node=agent-two \
-bind=172.20.20.11
-bind=172.20.20.11 -config-dir /etc/consul.d
...
```

Expand Down

0 comments on commit 3e9e575

Please sign in to comment.