welcome to a new module on hash core vault. Really be talking about secrets storage. In this particular lesson, we're gonna do environment set up. But before I get into the nuances of the environment set up, we have some exciting things that are gonna come down the pipe in this overworking module. We're gonna get evolved instance running locally.
We're gonna take a look at the key Value secrets engine,
and we're gonna explore how to manage vault via the sea. Ally, there's an http based AP I and A Web. You I So we're going to start transitioning and getting really hands on using the product in this particular lesson. However, we wanna make sure we get your system set up
so you have the latest version of vault
installed and running. First, I'm going to cover the installation process on a Windows environment. And then the second part I'm gonna cover installing vault on a Mac environment, and the process I go through it would be very applicable if you want to be running vault on a limits environment
as we go through these lab activities, we're not talking about setting a vault in a production capacity So go ahead and jump around in the video to the particular operating system you're working on.
For the next few minutes, I'm gonna walk through the process of installing vault on a Windows machine.
You can see I have my browser up and open to vault project dot io multi main website Right in our face. There is a download download here, and there's a download in the upper corner. Let's click the download in the main part of the page. It brings us to the vault download page
pre selected for our platform, which is Windows gonna proceed to download the binaries, which are all included in a ZIP file.
And then let's go ahead and open the zip file.
So what the download has is just a single execute herbal, pre compiled toe work in the Windows environment.
Now I've downloaded in a zip file. I need to put it somewhere.
You have a lot of options in this tutorial. I'm gonna go ahead and I'm gonna put the zip file in
in program files directory.
And to do that, I'm gonna make the folder to which this is gonna go,
and then I'm just gonna manually make these cause vote doesn't really have a nice installer. But I do want to keep with the Windows
of putting stuff in program files and kind of organizing it by application.
And then I'm gonna drag and drop the execute herbal into the directory program files hashtag or vault been that I created.
Now, this is good. It has the binaries in the right spot, but we still have another step in that. If I go to the command shell, the vault binary itself is not apparent on the system path. And so we need to go through the process of adding that to the system path.
There's waste a lot of different ways to go about doing this. I'm gonna stick with the
simple, gooey method. Since we are on a Windows machine opened up control panel,
system and system settings,
editing system, environment, variables,
an environment variable we want to modify is path. But we're going to do it on a system wide basis.
what we have selected here.
Okay, Okay. Now, even though I have launched a window. The changes I made to the path variable aren't going to take effect until I launch a new console window. We're gonna constant launch another console window
just to make sure all of this works.
And there we go. Vault 131 installed on Windows platform.
For the next few minutes, I'm gonna walk through installing vault on a Mac OS. The process I'm using is can be very much modelled. If you're installing vault on Olynyk server as well here, I'm on the vault website vault project that I Oh, we have some download options. Upper like straight center.
Clicking on either is gonna break you to the vault binary download page. We're going to download just a single binary file. They've pre compiled it for variety of different platforms. Mac OS X is our situation, so I'm going to download launching the download gives me a zip file.
So want to create a directory to store the downloaded vault binaries? You can see by the name of the zip file. I downloaded version 131 of vault. I'm gonna go ahead and I'm gonna make a directory in opt. That's gonna be a place to put this binary file. And then, of course, I need to unzip
the binary that we just downloaded as well. So even on zip that
and then we're gonna move
into that directory that we just created.
And now we still don't have vault on our path. And you can see So what I like to do in this circumstances create a SIM link in user local bin that points to the binary residing in the opt directory.
Everybody has their own conventions. This is one that I follow
very influenced by the file system hierarchy standard in Lennox. You can definitely take a peek at that. If you ever confused about Lennox directories and subdirectories and how files and content on Lenox machines is organized,
our source is gonna be
and their destination usually.
Okay, we can see we have it pointing not quite to the right directory. They're
Excuse me to the right file.
Go which butts? And there we are. So we have put vault version
131 into user local bin, which is a symbol ing pointing to the actual binaries which are an opt vault 131 and it's all on our path. So I don't have to worry about manipulating the path variable for my user account or any other user accounts on this machine
before calling it a day on the vault installed process, though, I want to set up in an auto complete utility, which will be helpful as we're exploring the vault command line in subsequent
modules of this training. This is only applicable if you're using Bash CSH or Fish Command shells. So Windows users. I didn't include this because it's not gonna work in your world.
you can see if I run vault. There's a variety of commands which many of way haven't gotten into. But if I run this dash auto complete
um, it's gonna go through a little bit of a process and set things up for me,
and it updates my Bashar. See, I was fiddling around with this a little bit earlier before the recording. You see, it already updated this for me, but this is very helpful when we're running vault the to get a bearing on these different sub commands that you can see up here.
So I can do. For example, there's a vault list is the sub command vault ally, and then I hit the tab. Keen. It automatically expands out the fact that it's vault list
that will be helpful as we move along. This wraps up for installing on Mac should be very applicable when you're installing Balto Analytics. So what did we learn in this video? We found the latest version of vault located it on the Hash E Corp vault project that I owe website
you installed on your system. Whether it be a Windows links or Mac,
we added it to your path, using Windows, the path variable on. Then, on the Mac and Lennox environment, we set up the auto complete capabilities and ultimately, Rance a few basic commands to ensure that the installation was successful. So I look forward to the upcoming videos and modules because we're going to really start
learning a lot more about this product and seeing it truly in action.