32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
- name: Add helm repositories
|
|
kubernetes.core.helm_repository:
|
|
name: "{{ item.name }}"
|
|
repo_url: "{{ item.url }}"
|
|
state: present
|
|
loop: "{{ platform.helm_repositories + downstream.helm_repositories }}"
|
|
|
|
- name: Fetch helm charts for metacluster
|
|
ansible.builtin.command:
|
|
cmd: helm fetch {{ item.value.helm.chart }} --untar --version {{ item.value.helm.version }}
|
|
chdir: /opt/metacluster/helm-charts
|
|
when: item.value.helm is defined
|
|
register: helmcharts_metacluster
|
|
loop: "{{ query('ansible.builtin.dict', components) }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
retries: 5
|
|
delay: 5
|
|
until: helmcharts_metacluster is not failed
|
|
|
|
- name: Fetch helm charts for workloadcluster
|
|
ansible.builtin.command:
|
|
cmd: helm fetch {{ item.value.chart }} --untardir ./{{ item.value.namespace }} --untar --version {{ item.value.version }}
|
|
chdir: /opt/workloadcluster/helm-charts
|
|
register: helmcharts_workloadcluster
|
|
loop: "{{ query('ansible.builtin.dict', downstream.helm_charts) }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
retries: 5
|
|
delay: 5
|
|
until: helmcharts_workloadcluster is not failed
|