Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
Last active February 8, 2022 18:20
Show Gist options
  • Save troyfontaine/9f90094f2db12d72f083313dbcddc99d to your computer and use it in GitHub Desktop.
Save troyfontaine/9f90094f2db12d72f083313dbcddc99d to your computer and use it in GitHub Desktop.
Install Hashicorp Vault on Raspberry Pi 4 with 64-bit Raspberry Pi OS
#!/usr/bin/env bash
# Install Dependencies
sudo apt-get update && sudo apt-get install software-properties-common wget -y
# Add the gpg key
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
# Add the repository and set where the key is to validate the packages
echo 'deb [arch=arm64 signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main' | sudo tee /etc/apt/sources.list.d/hashicorp.list
# Update the apt cache and install vault
sudo apt-get update && sudo apt-get install vault -y
# The above commands will install the latest version of Vault available for your arch/distribution
# Vault will by default not be started, but will be enabled!
# To reach the UI, you will need to modify the configuration file at /etc/vault.d/vault.hcl
# and add "tls_disable_client_certs = true" within the listener "TCP" block to access the UI
# to perform initial configuration of the unseal keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment