Skip to content

Commit

Permalink
ansible: Use installer script to install Helm from the source
Browse files Browse the repository at this point in the history
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 <feruzjon.muyassarov@intel.com>
  • Loading branch information
fmuyassarov authored and askervin committed Jul 2, 2024
1 parent a2aa924 commit 17e1028
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion test/e2e/playbook/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,29 @@
name: kubernetes
when: ansible_facts['distribution'] == "Fedora"

- name: Download the Helm install script
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
dest: /tmp/get_helm.sh
mode: '0644'

- name: Change permissions to make the script executable
ansible.builtin.file:
path: /tmp/get_helm.sh
mode: '0700'
state: file

- name: Execute the Helm install script
ansible.builtin.command:
cmd: /tmp/get_helm.sh
environment:
VERIFY_CHECKSUM: "false"

- name: Clean up the Helm install script
ansible.builtin.file:
path: /tmp/get_helm.sh
state: absent

- name: Install common packages
ansible.builtin.package:
name:
Expand All @@ -102,7 +125,6 @@
- kubeadm
- kubectl
- systemd-container
- helm
state: present

- name: Install apt packages
Expand Down

0 comments on commit 17e1028

Please sign in to comment.