Install argo-cd;Housekeeping
continuous-integration/drone/push Build is passing Details

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 }} | \
jq -r '.Tags[0]')
chdir: /opt/metacluster/container-images/
register: results
# ignore_errors: yes
loop: "{{ imagetarballs.files }}"
- ansible.builtin.debug:
var: results
- name: Delete container image tarballs/archives
ansible.builtin.file:
path: /opt/metacluster/container-images
@ -147,6 +142,21 @@
- path: /
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
ansible.builtin.file:
path: "{{ kubeconfig.path }}"

View File

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