====== Consul ======
* [[Vault]]
* [[https://www.consul.io/|Homepage]]
* [[https://www.consul.io/downloads.html|Downloads]]
=== Ubuntu Installation ===
Download Consul, unpack the binary, and put it in ''/usr/local/sbin''.
Set up the user and its home directory:
mkdir /var/lib/consul
useradd consul -d /var/lib/consul
chown consul: /var/lib/consul
chmod 0700 /var/lib/consul
Create a basic configuration file in ''/etc/consul.d/server/config.json'':
mkdir -p /etc/consul.d/server
{
"bootstrap": false,
"server": true,
"log_level": "INFO"
"enable_syslog": true,
"ui": true
}
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
Start the Consul service:
service consul start