Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
consul [2016/07/06 14:26]
steve
consul [2016/07/06 14:37]
steve
Line 9: Line 9:
  
 Download Consul, unpack the binary, and put it in ''/​usr/​local/​sbin''​. Download Consul, unpack the binary, and put it in ''/​usr/​local/​sbin''​.
 +
 +Set up the user and its home directory:
 +
 +<​code>​
 +mkdir /​var/​lib/​consul
 +useradd consul -d /​var/​lib/​consul
 +chown consul: /​var/​lib/​consul
 +chmod 0700 /​var/​lib/​consul
 +</​code>​
 +
 +Create a basic configuration file in ''/​etc/​consul.d/​server/​config.json'':​
 +
 +<​code>​
 +mkdir -p /​etc/​consul.d/​server
 +</​code>​
 +
 +<​code>​
 +{
 +  "​bootstrap":​ false,
 +  "​server":​ true,
 +  "​log_level":​ "​INFO"​
 +  "​enable_syslog":​ true,
 +  "​ui":​ true
 +</​code>​
  
 Create an init configuration file at ''/​etc/​init/​consul.conf'':​ Create an init configuration file at ''/​etc/​init/​consul.conf'':​
Line 26: Line 50:
 </​code>​ </​code>​
  
-Create a basic configuration file in ''/​etc/​consul.d/​server'':​ 
  
-<​code>​ 
-{ 
-  "​bootstrap":​ false, 
-  "​server":​ true, 
-  "​log_level":​ "​INFO"​ 
-  "​enable_syslog":​ true, 
-  "​ui":​ true 
-</​code>​