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 bento/centos-7.5 ; 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.4_linux_amd64.zip && ls && sudo yum install -y unzip && unzip vault_0.10.4_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