This is an old revision of the document!


Consul

Ubuntu Installation

Download Consul, unpack the binary, and put it in /usr/local/sbin.

Create an init configuration file at /etc/init/consul.conf:

description "Consul server process"

start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel [!12345]

respawn

setuid consul
setgid consul

exec consul agent -config-dir /etc/consul.d/server

Create a basic configuration file in /etc/consul.d/server:

{
  "bootstrap": false,
  "server": true,
  "log_level": "INFO"
  "enable_syslog": true,
  "ui": true