Hardcode version of yq on 3.3.2
Since version 4,yq uses another syntax, from apt repository
focal by default uses 4.x version, bionic uses 3.x version.
Related-Prod: PRODX-24471
Change-Id: Idaba434af85c31c887bc5424b8047b720ba5509f
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 5950eff..cccbc3a 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -217,9 +217,11 @@
fi
fi
function install_retry {
- add-apt-repository ppa:rmescandon/yq -y
apt update
- export DEBIAN_FRONTEND=noninteractive; apt install -y $pkg_list yq
+ export DEBIAN_FRONTEND=noninteractive; apt install -y $pkg_list
+ # Since version 4 yq uses another syntax
+ curl --retry 6 --retry-delay 5 -L https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 -o /usr/bin/yq
+ chmod +x /usr/bin/yq
}
retry 10 "Failed to install required packages" install_retry
}