Skip to content

Instantly share code, notes, and snippets.

@TimoDJatomika
Last active December 24, 2018 17:45
Show Gist options
  • Save TimoDJatomika/e0f4a2787128174227ecf20d2762c39c to your computer and use it in GitHub Desktop.
Save TimoDJatomika/e0f4a2787128174227ecf20d2762c39c to your computer and use it in GitHub Desktop.
setup of a high availability vault cluster: setup vault
#!/bin/bash
# author: Timo Stankowitz <[email protected]>
# version: 6
# last (working) test: 2018-12-24
# use the script to configure vault.
mkdir vault-config vault-log
cd vault-config
wget https://vault-ha.de/files/vault-config.hcl
# start the docker container with the previously downloaded configuration file
docker run -d --name="vault" --cap-add=IPC_LOCK --net=host -v /home/core/vault-config/:/vault/config:ro -v /home/core/vault-log:/vault/logs vault:1.0.0 server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment