Remove dynamic versioning; Move applications to vars_file
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-27 15:17:50 +02:00
parent 8cff18bbea
commit 310c65cf3b
2 changed files with 32 additions and 30 deletions

View File

@ -207,30 +207,15 @@
no_log: true no_log: true
loop: "{{ helm.repositories }}" loop: "{{ helm.repositories }}"
- block: - name: Install Helm charts
kubernetes.core.helm:
- name: Rancher Fleet -- Determine latest version name: "{{ item.name }}"
ansible.builtin.uri: chart_ref: "{{ item.ref }}"
url: https://api.github.com/repos/rancher/fleet/releases/latest namespace: "{{ item.namespace }}"
return_content: yes create_namespace: yes
register: latest_release wait: yes
kubeconfig: "{{ kubeconfig.path }}"
- name: Rancher Fleet -- Install Helm chart w/ prereqs values: "{{ item.setvalues | default(omit) }}"
kubernetes.core.helm: args:
name: "{{ item.name }}" warn: false
chart_ref: "{{ item.ref }}" loop: "{{ helm.charts }}"
namespace: fleet-system
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ item.setvalues | default(omit) }}"
loop:
- name: cert-manager
ref: jetstack/cert-manager
setvalues:
installCRDs: true
- name: fleet-crd
ref: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-crd-{{ latest_release.json.tag_name[1:] }}.tgz"
- name: fleet
ref: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-{{ latest_release.json.tag_name[1:] }}.tgz"

View File

@ -1,6 +1,23 @@
helm: helm:
repositories: repositories:
- name: rancher-stable # - name: rancher-stable
url: https://releases.rancher.com/server-charts/stable # url: https://releases.rancher.com/server-charts/stable
- name: jetstack - name: jetstack
url: https://charts.jetstack.io url: https://charts.jetstack.io
- name: gitea-charts
url: https://dl.gitea.io/charts/
charts:
- name: cert-manager
namespace: cert-manager
ref: jetstack/cert-manager
setvalues:
installCRDs: true
- name: gitea
namespace: gitea
ref: gitea-charts/gitea
- name: fleet-crd
namespace: fleet-system
ref: "https://github.com/rancher/fleet/releases/download/v0.3.9/fleet-crd-0.3.9.tgz"
- name: fleet
namespace: fleet-system
ref: "https://github.com/rancher/fleet/releases/download/v0.3.9/fleet-0.3.9.tgz"