From 9eaf79a0f9ff558c6ae26ebc5ca2467398558681 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Fri, 11 Dec 2020 15:54:40 -0800 Subject: [PATCH] Download helm3 in current path For some reason, the helm3 sources can't be uncompressed from /tmp compared to the helm ones. Download helm3 sources in the current dir instead. Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall Change-Id: Ib4e33279a1e40a7d7b90ee47f54560f252173c1d --- packer/provision/helm.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packer/provision/helm.yaml b/packer/provision/helm.yaml index 0b14beee9..459fbb1fc 100644 --- a/packer/provision/helm.yaml +++ b/packer/provision/helm.yaml @@ -46,7 +46,7 @@ - name: 'Fetch tar.gz' get_url: url: "https://get.helm.sh/helm-v{{helm3_version}}-linux-amd64.tar.gz" - dest: "/tmp/helm3/helm-v{{helm3_version}}-linux-amd64.tar.gz" + dest: /tmp/helm3 - name: 'Unarchive' unarchive: src: "/tmp/helm3/helm-v{{helm3_version}}-linux-amd64.tar.gz" @@ -61,6 +61,15 @@ - name: 'Check kubectl.' command: 'which kubectl' + - name: Install helm3 + shell: | + echo "----> Installing helm3" + wget 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz' + tar -xvf 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz' + mv linux-amd64/helm /usr/local/bin/helm3 + which helm3 + become: true + - name: 'Install ChartMuseum {{chartmuseum_version}}' block: - name: 'Fetch bin' -- 2.16.6