Skip to content

Commit ffb58f1

Browse files
rgevaertjsok
authored andcommitted
Update raft storage backend documentation
1 parent 4fe1a19 commit ffb58f1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The module will **not** manage any required packages to un-archive, e.g. `unzip`
9595

9696
By default, with no parameters the module will configure vault with some sensible defaults to get you running, the following parameters may be specified to configure Vault. Please see [The official documentation](https://www.vaultproject.io/docs/configuration/index.html) for further details of acceptable parameter values.
9797

98-
* `storage`: A hash containing the Vault storage configuration, default:
98+
* `storage`: A hash containing the Vault storage configuration. File and raft storage backends are supported. In the examples section you can find an example for raft. The file backend is the default:
9999
```
100100
{ 'file' => { 'path' => '/var/lib/vault' }}
101101
```
@@ -174,6 +174,18 @@ vault::listener:
174174
vault::default_lease_ttl: 720h
175175
```
176176
177+
Configuring raft storage engine using Hiera:
178+
```yaml
179+
vault::storage:
180+
raft:
181+
node_id: '%{facts.networking.hostname}'
182+
path: /var/lib/vault
183+
retry_join:
184+
- leader_api_addr: https://vault1:8200
185+
- leader_api_addr: https://vault2:8200
186+
- leader_api_addr: https://vault3:8200
187+
```
188+
177189
## mlock
178190
179191
By default vault will use the `mlock` system call, therefore the executable will need the corresponding capability.

0 commit comments

Comments
 (0)