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
Previous revision
Next revision Both sides next revision
vault [2016/07/06 13:15]
steve
vault [2016/07/06 15:13]
steve
Line 11: Line 11:
  
 Download latest version of Vault, unpack the zip file, and put the binary in ''/​usr/​local/​sbin''​. Download latest version of Vault, unpack the zip file, and put the binary in ''/​usr/​local/​sbin''​.
 +
 +Set up a user for vault:
 +
 +<​code>​
 +mkdir /​var/​lib/​vault
 +useradd vault -d /​var/​lib/​vault
 +chown vault: /​var/​lib/​vault
 +chmod 0700 /​var/​lib/​vault
 +</​code>​
  
 Create an init script for the service, have it start on boot, and depend upon consul. Create an init script for the service, have it start on boot, and depend upon consul.
Line 30: Line 39:
 </​code>​ </​code>​
  
-Create a base configuration for Vault in ''/​etc/​vault/​config.hcl'':​+Create a base configuration for Vault in ''/​etc/​vault/​config.hcl'' ​using Consul:
  
 <​code>​ <​code>​
-backend "inmem" {+backend "consul" { 
 +  address = "​127.0.0.1:​8500"​ 
 +  path = "​vault"​
 } }