#Windows Install Scripts for Hashicorp Tools ##NAME Install-Vault.ps1 ##SYNOPSIS Downloads and Installs Vault and Consul
##DESCRIPTION This script will:
Download the requested Vault and Consul binaries Unzips and install them to the chosen location Write Example Configuration Files Set up Consul ACLs ###Examples:
To Simply Install Vault and Consul as a service using the LocalSystem user run the following:, .\Install-Vault.ps1 -CONSUL_VERSION "1.7.4" -VAULT_VERSION "1.4.2"
To Install Vault and Consul as a service using unique users (consul and vault), run the following: .\Install-Vault.ps1 -CONSUL_VERSION "1.7.3" -VAULT_VERSION "1.4.2" -Action "Install-All -localuser "$false"
To Install Vault and Consul as a service using unique users (consul and vault) and to a custom location (default is C:\Hashicorp<Vault OR Consul>), run the following: noting the back-slashes in the directory paths .\Install-Vault.ps1 -CONSUL_VERSION "1.7.3" -VAULT_VERSION "1.4.2" -Action "Install-All -localuser "$false" -CONSUL_DIR "C:/<CUSTOM_DIR>" -VAULT_DIR "C:/<CUSTOM_DIR>
To Install Vault as a service and use Integrated Storage run the following: .\Install-Vault.ps1 -CONSUL_VERSION "1.7.3" -VAULT_VERSION "1.4.2" -Action "Install-Vault" -USE_RAFT "$true"