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
- 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: kubernetes.core.helm:
name: "{{ item.name }}" name: "{{ item.name }}"
chart_ref: "{{ item.ref }}" chart_ref: "{{ item.ref }}"
namespace: fleet-system namespace: "{{ item.namespace }}"
create_namespace: yes create_namespace: yes
wait: yes wait: yes
kubeconfig: "{{ kubeconfig.path }}" kubeconfig: "{{ kubeconfig.path }}"
values: "{{ item.setvalues | default(omit) }}" values: "{{ item.setvalues | default(omit) }}"
loop: args:
- name: cert-manager warn: false
ref: jetstack/cert-manager loop: "{{ helm.charts }}"
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"