Add missing galaxy collection;Fix logic to parse charts for container images;Add ArgoCD
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
662e8984c3
commit
c58ede04c4
@ -1,2 +1,4 @@
|
|||||||
collections:
|
collections:
|
||||||
|
- ansible.utils
|
||||||
|
- community.general
|
||||||
- kubernetes.core
|
- kubernetes.core
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
register: archive
|
register: archive
|
||||||
|
|
||||||
- name: Download, extract & install archived static binary
|
- name: Download & extract archived static binary
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "{{ item.url }}"
|
src: "{{ item.url }}"
|
||||||
dest: "{{ archive.path }}"
|
dest: "{{ archive.path }}"
|
||||||
|
@ -16,4 +16,3 @@
|
|||||||
until: api_readycheck.apiVersion is defined
|
until: api_readycheck.apiVersion is defined
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 30
|
delay: 30
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
- name: Fetch helm charts
|
- name: Fetch helm charts
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: helm fetch {{ item.value.helm_chart }} --untar --version {{ item.value.version }}
|
cmd: helm fetch {{ item.value.helm.chart }} --untar --version {{ item.value.helm.version }}
|
||||||
chdir: /opt/metacluster/helm-charts
|
chdir: /opt/metacluster/helm-charts
|
||||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
- name: Parse helm charts for container images
|
- name: Parse helm charts for container images
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: "{{ item.value.parse_logic }} /opt/metacluster/helm-charts/{{ item.key }}/values.yaml"
|
cmd: "{{ item.value.helm.parse_logic }} /opt/metacluster/helm-charts/{{ item.key }}/values.yaml"
|
||||||
register: containerimages
|
register: containerimages
|
||||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
@ -7,25 +7,33 @@ platform:
|
|||||||
url: https://charts.longhorn.io
|
url: https://charts.longhorn.io
|
||||||
- name: harbor
|
- name: harbor
|
||||||
url: https://helm.goharbor.io
|
url: https://helm.goharbor.io
|
||||||
|
- name: argo
|
||||||
|
url: https://argoproj.github.io/argo-helm
|
||||||
|
|
||||||
components:
|
components:
|
||||||
|
|
||||||
longhorn:
|
longhorn:
|
||||||
version: 1.3.0
|
helm:
|
||||||
helm_chart: longhorn/longhorn
|
version: 1.3.0
|
||||||
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + .tag'
|
chart: longhorn/longhorn
|
||||||
|
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + .tag'
|
||||||
|
|
||||||
harbor:
|
harbor:
|
||||||
version: 1.9.1 # (= Harbor v2.5.1)
|
helm:
|
||||||
helm_chart: harbor/harbor
|
version: 1.9.1 # (= Harbor v2.5.1)
|
||||||
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + .tag'
|
chart: harbor/harbor
|
||||||
|
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + .tag'
|
||||||
|
|
||||||
# argocd:
|
argocd:
|
||||||
# version:
|
helm:
|
||||||
|
version: 4.9.7 # (= ArgoCD v2.4.2)
|
||||||
|
chart: argo/argo-cd
|
||||||
|
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + (.tag // "v2.4.2")'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
ansible_galaxy_collections:
|
ansible_galaxy_collections:
|
||||||
|
- ansible.utils
|
||||||
- community.general
|
- community.general
|
||||||
- kubernetes.core
|
- kubernetes.core
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user