Last active
November 18, 2018 11:01
-
-
Save juranki/ab9788b0c02c37ee5890162ef43787d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -x | |
set -e | |
function install_hashi_bin { | |
local app=$1 | |
local version=$2 | |
wget https://releases.hashicorp.com/${app}/${version}/${app}_${version}_linux_amd64.zip | |
wget https://releases.hashicorp.com/${app}/${version}/${app}_${version}_SHA256SUMS | |
grep linux_amd64.zip ${app}_${version}_SHA256SUMS | sha256sum -c - | |
unzip ${app}_${version}_linux_amd64.zip | |
cp ${app} /usr/local/bin | |
${app} version | grep ${version} | |
rm ${app}* | |
} | |
if ! [ -x "$(command -v unzip)" ]; then | |
apt install -y unzip | |
fi | |
install_hashi_bin consul 1.4.0 | |
install_hashi_bin vault 1.0.0-beta2 | |
setcap cap_ipc_lock=+ep /usr/local/bin/vault | |
install_hashi_bin nomad 0.8.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment