Install Vault globally

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-09-07 19:51:21 +02:00
parent ddd0086cfc
commit 17359701d1
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -33,6 +33,13 @@ apt-get install -y --no-install-recommends ${install_packages[@]}
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins
usermod -a -G docker jenkins usermod -a -G docker jenkins
# Install Vault for global usage
VAULT_VERSION=$(curl -sSfL "https://lv.luzifer.io/catalog-api/vault/latest.txt?p=version")
curl -sSfLo vault.zip "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip"
unzip vault.zip
rm vault.zip
install -Dm0755 -t /usr/local/bin vault
# Cleanup # Cleanup
apt-get purge -y ${build_packages[@]} apt-get purge -y ${build_packages[@]}
apt-get autoremove --purge -y apt-get autoremove --purge -y