Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 3.5 KB

README.md

File metadata and controls

67 lines (42 loc) · 3.5 KB

Installer for HashiCorp Stack - Automated Installation

Automatically Download, Extract and Install Latest or Specific Version

release bash license


The hashistack-install script automates the process of downloading and installing HashiCorp tools: Packer, Terraform, Consul, Vault, Nomad, Boundary, Waypoint.

It is based on Robert Peteuil's excellent terraform-installer and packer-installer, with the following addition:

  • additional install scripts for Consul, Vault, Nomad, Boundary and Waypoint were created.
  • minor changes were also made to select binaries correctly for Linux on arm (use arm64 binaries instead of arm when aarch is detected).

Current version is just a wrapper script calling each individual installer with the -a flag, which automatically use sudo to install to /usr/bin/local.

It only support to install the latest available version on release.hashicorp.com. Future versions of this global installer may give more choices, exposing installer options for each installer.

For detailed options and capabilities of each installer, please see Robert's Packer Installer and Terraform Installer.

If/when https://iac.sh evovles to support the installation of HashiCorp products other than Terraform and Packer, this project will be a good candidate for archives :-)

Quickstart

Just run the command below on your terminal. This is the fastest and simplest way to get access to the HashiStack.

curl -L --silent https://raw.github.com/kral2/hashistack-installer/main/bootstrap.sh | bash

It will download all the HashiStack tools in the current user's home directory and update your $PATH variable for immediate usage. No sudo rights required. It works great with OCI Cloud Shell.

Manual Install

Download the installer

curl -LO --silent https://raw.github.com/kral2/hashistack-installer/main/hashistack-install.sh
chmod +x hashistack-install.sh

Run the installer, passing a product name as an argument:

./hashistack-install.sh [packer|terraform|consul|vault|nomad|boundary|waypoint]

You can install multiple products at once if needed:

./hashistack-install.sh packer terraform vault

System Requirements

  • System with Bash Shell (Linux, macOS, Windows Subsystem for Linux)
  • unzip - terraform downloads are in zip format
  • curl or wget - script will use either one to retrieve metadata and download

Optional

  • jq - if installed, latest version parsed from hashicorp downloads
    • Useful if latest github release differs from version on hashicorp downloads
    • Avoids github api limit of 60 requests per hour (unauthenticated)