When using HashiCorp Vault, it is important to know how to perform the installation, configuration, and the initial setup. This lab will demonstrate how to complete these tasks.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Download, Unpack, and Move Consul to the Bin Directory
- Download Consul.
- Install
unzip
and unpack the Consul zip. - Move the Consul executable to the
bin
directory. - Test it out!
- Create and Configure the Consul systemd Service
- Create a
systemd
service file and populate it with the provided code, replacing theIP.ADDRESS.OF.SERVER
with the internal IP address of the server. - Create a directory for the configuration files.
- Create a configuration file for the Consul UI and populate it with the provided code.
- Reload, start, enable, and verify the Consul service.
- Create a
- Download, Unpack, and Move Vault to the Bin Directory
- Download and unpack Vault.
- Move the Vault binary to the
bin
directory.
- Create and Configure the Vault systemd Service
- Create a directory for the configuration files.
- Create a configuration file for Vault and populate it with the provided code, replacing the
Consul.IP.ADDRESS
with the internal IP address of the server. - Create a
systemd
service file and populate it with the provided code. - Reload, start, enable, and verify the Vault service.
- Set the Vault address for both the current and future system sessions.
- Set up autocomplete for Vault commands.
- Initialize and Access the Vault
Initialize, unseal, and log in to Vault to verify the previous tasks were completed successfully.