Skip to content

Instantly share code, notes, and snippets.

@v6
Last active August 17, 2018 22:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v6/22b468c44803633a4525ad12eb12166b to your computer and use it in GitHub Desktop.
Save v6/22b468c44803633a4525ad12eb12166b to your computer and use it in GitHub Desktop.
// , Short description of an installation of Vault 0.10.1 on an Ubuntu 18.04 Vagrant box

After I installed Vagrant from http://vagrantup.com/downloads.html, I used the following set of commands to make a Vagrant environment for testing Vault:

mkdir -p ~/proj/vaulttest/ ; cd ~/proj/vaulttest/ ; vagrant init ubuntu/bionic64 ; vagrant up && vagrant ssh

After this, I checked to make sure I was on vagrant by looking at my command prompt for vagrant, and installed vault in my Vagrant machine:

wget https://releases.hashicorp.com/vault/0.10.1/vault_0.10.1_linux_amd64.zip && ls && sudo apt-get install -y unzip && unzip vault_0.10.1_linux_amd64.zip && sudo mv vault /usr/local/bin/vault && vault -h

After installing Vault, I ran this: vault -autocomplete-install

Then I could run Vault in the background with the following:

export VAULT_ADDR='http://127.0.0.1:8200'
nohup vault server -dev &
cat nohup.out | egrep '(Token|Key)'
ps -ef | grep vault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment