2 - import_playbook: ../common-packer/provision/docker.yaml
9 kubectl_version: 1.22.4
11 helm3_3_version: 3.3.4
12 helm3_5_version: 3.5.1
13 helm3_7_version: 3.7.1
14 chartmuseum_version: 0.12.0
17 - name: "Install kubectl {{kubectl_version}}"
19 url: "https://storage.googleapis.com/kubernetes-release/release/v{{kubectl_version}}/bin/linux/amd64/kubectl"
20 dest: /usr/local/bin/kubectl
24 - name: "Install Helm {{helm_version}}"
26 - name: "Fetch tar.gz for {{helm_version}}"
28 url: "https://get.helm.sh/helm-v{{helm_version}}-linux-amd64.tar.gz"
29 dest: "/tmp/helm-v{{helm_version}}-linux-amd64.tar.gz"
30 - name: "Unarchive {{helm_version}}"
32 src: "/tmp/helm-v{{helm_version}}-linux-amd64.tar.gz"
36 - name: "Move {{helm_version}} bin to /usr/local/bin and set as executable"
37 command: "mv /tmp/linux-amd64/helm /usr/local/bin/helm"
39 - name: "Check Helm {{helm_version}}"
42 - name: "Install Helm 3.3 {{helm3_3_version}}"
44 - name: "Create directory /tmp/helm3_3"
48 - name: "Fetch tar.gz for Helm 3.3"
50 url: "https://get.helm.sh/helm-v{{helm3_3_version}}-linux-amd64.tar.gz"
52 - name: "Unarchive Helm 3.3"
54 src: "/tmp/helm3_3/helm-v{{helm3_3_version}}-linux-amd64.tar.gz"
58 - name: "Move Helm 3.3 bin to /usr/local/bin and set as executable"
59 command: "mv /tmp/helm3_3/linux-amd64/helm /usr/local/bin/helm3.3"
61 - name: "Check Helm 3.3"
62 command: "which helm3.3"
63 - name: "Check kubectl {{kubectl_version}}"
64 command: "which kubectl"
66 - name: "Install Helm 3.3"
68 echo "----> Installing helm 3.3"
69 wget 'https://get.helm.sh/helm-v{{helm3_3_version}}-linux-amd64.tar.gz'
70 tar -xvf 'https://get.helm.sh/helm-v{{helm3_3_version}}-linux-amd64.tar.gz'
71 mv linux-amd64/helm /usr/local/bin/helm3.3
75 - name: "Install Helm3.5 {{helm3_5_version}}"
77 - name: "Create directory /tmp/helm3.5"
81 - name: "Fetch tar.gz for Helm 3.5"
83 url: "https://get.helm.sh/helm-v{{helm3_5_version}}-linux-amd64.tar.gz"
85 - name: "Unarchive Helm 3.5"
87 src: "/tmp/helm3.5/helm-v{{helm3_5_version}}-linux-amd64.tar.gz"
91 - name: "Move Helm 3.5 bin to /usr/local/bin and set as executable"
92 command: "mv /tmp/helm3.5/linux-amd64/helm /usr/local/bin/helm3.5"
94 - name: "Check Helm 3.5"
95 command: "which helm3.5"
96 - name: "Check kubectl {{kubectl_version}}"
97 command: "which kubectl"
98 - name: "Install Helm 3.5"
100 echo "----> Installing helm3.5"
101 wget 'https://get.helm.sh/helm-v{{helm3_5_version}}-linux-amd64.tar.gz'
102 tar -xvf 'https://get.helm.sh/helm-v{{helm3_5_version}}-linux-amd64.tar.gz'
103 mv linux-amd64/helm /usr/local/bin/helm3.5
107 - name: "Install Helm3.7 {{helm3_7_version}}"
109 - name: "Create directory /tmp/helm3.7"
113 - name: "Fetch tar.gz for Helm 3.7"
115 url: "https://get.helm.sh/helm-v{{helm3_7_version}}-linux-amd64.tar.gz"
117 - name: "Unarchive Helm 3.7"
119 src: "/tmp/helm3.7/helm-v{{helm3_7_version}}-linux-amd64.tar.gz"
123 - name: "Move Helm 3.7 bin to /usr/local/bin and set as executable"
124 command: "mv /tmp/helm3.7/linux-amd64/helm /usr/local/bin/helm3.7"
126 - name: "Check Helm 3.7"
127 command: "which helm3.7"
128 - name: "Check kubectl {{kubectl_version}}"
129 command: "which kubectl"
130 - name: "Install Helm 3.7"
132 echo "----> Installing helm3.7"
133 wget 'https://get.helm.sh/helm-v{{helm3_7_version}}-linux-amd64.tar.gz'
134 tar -xvf 'https://get.helm.sh/helm-v{{helm3_7_version}}-linux-amd64.tar.gz'
135 mv linux-amd64/helm /usr/local/bin/helm3.7
139 - name: "Install ChartMuseum {{chartmuseum_version}}"
141 - name: "Fetch bin for ChartMuseum"
143 url: "https://s3.amazonaws.com/chartmuseum/release/v{{ chartmuseum_version }}/bin/linux/amd64/chartmuseum"
144 dest: /usr/local/bin/chartmuseum
147 - name: "Check ChartMuseum {{chartmuseum_version}}"
148 command: "which chartmuseum"