summaryrefslogtreecommitdiffstats
path: root/packer/provision/helm.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'packer/provision/helm.yaml')
-rw-r--r--packer/provision/helm.yaml21
1 files changed, 16 insertions, 5 deletions
diff --git a/packer/provision/helm.yaml b/packer/provision/helm.yaml
index 7173e98f4..c5ce8a88b 100644
--- a/packer/provision/helm.yaml
+++ b/packer/provision/helm.yaml
@@ -8,7 +8,7 @@
vars:
kubectl_version: 1.23.8
helm3_8_version: 3.8.2
- chartmuseum_version: 0.12.0
+ chartmuseum_version: 0.15.0
tasks:
- name: 'Install kubectl {{kubectl_version}}'
@@ -54,11 +54,22 @@
- name: 'Install ChartMuseum {{chartmuseum_version}}'
block:
- - name: 'Fetch bin for ChartMuseum'
+ - name: 'Create directory /tmp/chartmuseum'
+ file:
+ path: /tmp/chartmuseum
+ state: directory
+ - name: 'Fetch tar.gz for chartmuseum'
get_url:
- url: "https://s3.amazonaws.com/chartmuseum/release/v{{ chartmuseum_version }}/bin/linux/amd64/chartmuseum"
- dest: /usr/local/bin/chartmuseum
- mode: "0755"
+ url: "https://get.helm.sh/chartmuseum-v{{chartmuseum_version}}-linux-amd64.tar.gz"
+ dest: /tmp/chartmuseum
+ - name: 'Unarchive chartmuseum'
+ unarchive:
+ src: "/tmp/chartmuseum/chartmuseum-v{{chartmuseum_version}}-linux-amd64.tar.gz"
+ dest: /tmp/chartmuseum
+ remote_src: true
+ become: yes
+ - name: 'Move chartmuseum bin to /usr/local/bin and set as executable'
+ command: 'mv /tmp/chartmuseum/linux-amd64/chartmuseum /usr/local/bin/chartmuseum'
become: yes
- name: 'Check ChartMuseum {{chartmuseum_version}}'
command: 'which chartmuseum'