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
loop: "{{ helm.repositories }}"
- block:
- name: Rancher Fleet -- Determine latest version
ansible.builtin.uri:
url: https://api.github.com/repos/rancher/fleet/releases/latest
return_content: yes
register: latest_release
- name: Rancher Fleet -- Install Helm chart w/ prereqs
kubernetes.core.helm:
name: "{{ item.name }}"
chart_ref: "{{ item.ref }}"
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"
- name: Install Helm charts
kubernetes.core.helm:
name: "{{ item.name }}"
chart_ref: "{{ item.ref }}"
namespace: "{{ item.namespace }}"
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ item.setvalues | default(omit) }}"
args:
warn: false
loop: "{{ helm.charts }}"

View File

@ -1,6 +1,23 @@
helm:
repositories:
- name: rancher-stable
url: https://releases.rancher.com/server-charts/stable
# - name: rancher-stable
# url: https://releases.rancher.com/server-charts/stable
- 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"