Vault
Install the Vault binary
You must first install Vault on your computer before you can use it. Vault is available as source code, as a pre-compiled binary, or in packaged formats.
Scenario
Before HashiCups starts their Vault proof-of-concept project, they need to install Vault. The Vault binary operates as a Vault server, as well as the CLI tool. There are no additional dependencies required to run the Vault binary for either scenario.
Oliver will install the Vault for macOS using Homebrew. When the installation
is complete, they will be able to run the vault command from the terminal.
Install Vault
(Persona: Operations)
Homebrew is a free and open-source package management system for Mac OS X. Install the official Vault formula from the terminal.
Install the HashiCorp tap, a repository of all HashiCorp Homebrew packages.
$ brew tap hashicorp/tapInstall Vault with
hashicorp/tap/vault.$ brew install hashicorp/tap/vaultVerify the installation by running the
vault -helpcommand.$ vault -help Usage: vault <command> [args] Common commands: read Read data and retrieves secrets write Write data, configuration, and secrets delete Delete secrets and configuration list List data or secrets login Authenticate locally agent Start a Vault agent server Start a Vault server status Print seal and HA status unwrap Unwrap a wrapped secret Other commands: audit Interact with audit devices auth Interact with auth methods ...snip...If you get an error that the binary could not be found, then your
PATHenvironment variable might no be properly set. Please go back and ensure that yourPATHvariable contains the directory where Vault was installed or restart the terminal session.
Vault Enterprise
Vault Enterprise binary checks for a license to run it.
$ brew install hashicorp/tap/vault-enterprise
Other operating systems
If you need to Install Vault on another operating system, please see the following:
Summary
Vault is available to install for most operating systems and through common
software distribution tools such as apt and yum. In addition to the
pre-compiled binaries, you can also review the Vault source code and compile
your own binary.
Now that you have Vault installed, you can start the Vault server and begin to explore Vault features.