DEV Community

How do I set up a Local HashiCorp Vault Cluster in 4 command lines?

πŸ¦„N BπŸ›‘ on December 09, 2018

What I'd like to give you is a Vault environment you can get up and running with in less than 25 minutes, with 4 command lines!* Disclaimer: Tho...
Collapse
 
harveyjones282 profile image
Harvey Jones

I was looking for an article on getting Vault installed on ubunto. Big new I didn't find any on the first page so I just clicked on yours. Although this article is for MacOs and windows but it kinda helped a little.

I then continued my search and on the 5th page of google I found this blog.carbonteq.com/vault-installat... and I was only able to understand it because I had read your article so ... passive thanks... I guess.

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘ • Edited

This is designed assuming that you're on your own laptop. Because everything runs on Vagrant, and Vagrant will create VirtualBoxVMs for you, these instructions will work on any operating system on which you can install Vagrant and VirtualBox.

Collapse
 
harveyjones282 profile image
Harvey Jones

Thanks. Although my setup is now working but anything goes wrong next time I will get virtual machine and follow the instructions.

Collapse
 
joehobot profile image
Joe Hobot

Thats bit more than 4 lines :) but ok .. I get it ;)

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘ • Edited

// , Technically there are only 4 commands until the cluster comes up. But you're correct that just referring to those means being a little over-optimistic, because the installation of the prerequisites Git, VirtualBox, and Vagrant isn't necessarily a matter of CLI commands.

Collapse
 
joehobot profile image
Joe Hobot

Just teasing :)
Good post tho ..

Collapse
 
rrrrnaveen profile image
rrrrnaveen

Thanks a lot NB. It was going fine and my system crashed. This is my beginning to explore Hashi Vault and this is just awesome, the way you set this up.
I did a big mistake, forgot to copy keys & root token.
System rebooted and its in sealed state.

When I first this command, it displayed all keys & root key(This where I should have saved it)
curl -s --request PUT -d '{"secret_shares": 3,"secret_threshold": 2}' 192.168.13.35:8200/v1/sys/init

Now Iam stuck in sealed status. Please suggest me

Collapse
 
rrrrnaveen profile image
rrrrnaveen

Should I destroy and recreate it, perhaps???

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘ • Edited

// ,

alt text

And

"Every Network is a Personal Network if you try hard and believe in yourself." --Nathan Basanese

Collapse
 
dietertroy profile image
Troy • Edited

Nice write up. Link to the ASCII in your console?? πŸ¦„