From fd6ed650d874b0a1d7982452ef9bb465c27389e0 Mon Sep 17 00:00:00 2001 From: arnaudfroidmont Date: Tue, 16 Jan 2024 13:48:35 -0700 Subject: [PATCH] Hardcode the OL version to mitigate the change on Hashicorp repo --- bin/bastion.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/bastion.sh b/bin/bastion.sh index 501cc559..a7bf37e6 100644 --- a/bin/bastion.sh +++ b/bin/bastion.sh @@ -45,6 +45,7 @@ if [ $ID == "ol" ] || [ $ID == "centos" ] ; then sudo ln -s /usr/local/bin/ansible /bin/ansible fi sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo + sudo sed -i 's/$releasever/'"${vid}"'/g' /etc/yum.repos.d/hashicorp.repo sudo yum install -y terraform sudo python3 -m pip install -U pip sudo python3 -m pip install netaddr --upgrade