Commit e4bc768d authored by Bengt Giger's avatar Bengt Giger

Helm installation added

parent aaa45f7c
Pipeline #81722 passed with stage
in 9 seconds
......@@ -7,3 +7,17 @@
- name: Repository for kubectl
apt_repository:
repo: deb https://apt.kubernetes.io/ kubernetes-xenial main
- name: Ensure key for helm repo is known
apt_key:
url: https://baltocdn.com/helm/signing.asc
state: present
- name: Repository for helm
apt_repository:
repo: deb https://baltocdn.com/helm/stable/debian/ all main
# helm repo for deb exists, but not for rpm. Install it here in Debian/Ubuntu tasks
- name: Install helm
apt:
name: helm
......@@ -75,7 +75,7 @@
# Install argocd CLI
- name: Determine argocd latest version
shell: curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
shell: curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
register: argocd_version
changed_when: false
......@@ -91,7 +91,7 @@
register: kustomize_version
changed_when: false
- name: Install kustomize
- name: Get kustomize taball
get_url:
url: "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/{{ kustomize_version.stdout }}/kustomize_{{ kustomize_version.stdout }}_linux_amd64.tar.gz"
dest: "{{ k8s_tarball_cache }}"
......
......@@ -9,3 +9,29 @@
gpgkey:
- https://packages.cloud.google.com/yum/doc/yum-key.gpg
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
- name: Determine helm latest version
shell: curl -s https://api.github.com/repos/helm/helm/releases/latest | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
register: helm_version
changed_when: false
- name: Get helm tarball
get_url:
url: "https://get.helm.sh/helm-{{ argocd_version.stdout }}-linux-amd64.tar.gz"
dest: "{{ k8s_tarball_cache }}/"
register: new_helm
- name: Install helm for RPM based distros (no rpm available)
block:
- name: Unarchive helm
unarchive:
src: "{{ k8s_tarball_cache }}/helm-{{ argocd_version.stdout }}-linux-amd64.tar.gz"
dest: /tmp
- name: Copy helm
copy:
src: "/tmp/linux-amd64/helm"
dest: "{{ k8s_install_basedir }}/helm"
mode: 0755
when: new_helm.changed == True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment