summaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-11 15:54:40 -0800
committerJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-12 03:28:59 +0000
commit9eaf79a0f9ff558c6ae26ebc5ca2467398558681 (patch)
treeb17d7426ce3b08dd26b789b4b195cda1a3f5d932 /packer/provision
parentab0ebdc5137ce4b336f159b446348af1fb9477e1 (diff)
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 <jwagantall@linuxfoundation.org> Change-Id: Ib4e33279a1e40a7d7b90ee47f54560f252173c1d
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/helm.yaml11
1 files changed, 10 insertions, 1 deletions
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'