Skip to content

Commit 17e1028

Browse files
fmuyassarovaskervin
authored andcommitted
ansible: Use installer script to install Helm from the source
Helm now has an installer script that will automatically grab the latest version of Helm and install it locally. Currently we can't install helm with apt package manager and running this installer scripts ensures that we have Helm installed on fedora and ubuntu. Signed-off-by: Feruzjon Muyassarov <[email protected]>
1 parent a2aa924 commit 17e1028

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

test/e2e/playbook/provision.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,29 @@
9191
name: kubernetes
9292
when: ansible_facts['distribution'] == "Fedora"
9393

94+
- name: Download the Helm install script
95+
ansible.builtin.get_url:
96+
url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
97+
dest: /tmp/get_helm.sh
98+
mode: '0644'
99+
100+
- name: Change permissions to make the script executable
101+
ansible.builtin.file:
102+
path: /tmp/get_helm.sh
103+
mode: '0700'
104+
state: file
105+
106+
- name: Execute the Helm install script
107+
ansible.builtin.command:
108+
cmd: /tmp/get_helm.sh
109+
environment:
110+
VERIFY_CHECKSUM: "false"
111+
112+
- name: Clean up the Helm install script
113+
ansible.builtin.file:
114+
path: /tmp/get_helm.sh
115+
state: absent
116+
94117
- name: Install common packages
95118
ansible.builtin.package:
96119
name:
@@ -102,7 +125,6 @@
102125
- kubeadm
103126
- kubectl
104127
- systemd-container
105-
- helm
106128
state: present
107129

108130
- name: Install apt packages

0 commit comments

Comments
 (0)