Install argo-cd;Housekeeping
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-07-05 09:56:56 +02:00
parent 952e92082f
commit 86e99b1515
2 changed files with 17 additions and 7 deletions

View File

@ -106,13 +106,8 @@
skopeo list-tags docker-archive:/data/{{ item }} | \ skopeo list-tags docker-archive:/data/{{ item }} | \
jq -r '.Tags[0]') jq -r '.Tags[0]')
chdir: /opt/metacluster/container-images/ chdir: /opt/metacluster/container-images/
register: results
# ignore_errors: yes
loop: "{{ imagetarballs.files }}" loop: "{{ imagetarballs.files }}"
- ansible.builtin.debug:
var: results
- name: Delete container image tarballs/archives - name: Delete container image tarballs/archives
ansible.builtin.file: ansible.builtin.file:
path: /opt/metacluster/container-images path: /opt/metacluster/container-images
@ -147,6 +142,21 @@
- path: / - path: /
pathType: Prefix pathType: Prefix
- name: Install argo-cd chart
kubernetes.core.helm:
name: argo-cd
chart_ref: /opt/metacluster/helm-charts/argo-cd
release_namespace: argo-cd
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
values:
server:
ingress:
enabled: true
hosts:
- gitops.{{ vapp['metacluster.fqdn'] }}
- name: Cleanup tempfile - name: Cleanup tempfile
ansible.builtin.file: ansible.builtin.file:
path: "{{ kubeconfig.path }}" path: "{{ kubeconfig.path }}"

View File

@ -25,9 +25,9 @@
- name: Inject chart values into ansible var files - name: Inject chart values into ansible var files
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: /opt/firstboot/ansible/vars/metacluster.yml path: /opt/firstboot/ansible/vars/metacluster.yml
block: |2 block: |
{{ item.key }}: {{ item.key }}:
{{ item.value.helm.chart_values | default('~') }} {{ item.value.helm.chart_values | default(omit) }}
marker: "# {mark} ANSIBLE MANAGED BLOCK -- {{ item.key }}" marker: "# {mark} ANSIBLE MANAGED BLOCK -- {{ item.key }}"
loop: "{{ lookup('ansible.builtin.dict', components) }}" loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control: loop_control: