Vault Server Using Vagrant

Vault Server using vagrant, virtual box and ubuntu 22.04

Create Ubuntu, Install Vault using Vagrant & VirtualBox

1. Prerequisites (Mandatory)

2. Mandatory Step for MacOS Monterey

Bun below...

sudo mkdir -p /etc/vbox/
echo * 0.0.0.0/0 ::/0 | sudo tee -a /etc/vbox/networks.conf

3. Checkout the Repo

Clone the repo locally by running below command

git clone the repo https://github.com/ramanagali/vault-server.git
cd vault-server

4. Bootstrapping k8s cluster using shell script

Run below command to provision new vault server

./bootstrap.sh

5. Access vault server from browser

http://localhost:8200

export VAULT_ADDR='http://127.0.0.1:8200'

6. Stop vault server

vagrant halt

10. Cleanup k8s cluster

vagrant destroy -f

Workaround for hrome allow vault SSL cert (if vault running in https)

  • Right click, select inspect element
  • click on console tab
  • Copy paste sendCommand(SecurityInterstitialCommandId.CMD_PROCEED)
  • press Enter