Move manifest injection to firstboot;Add SealedSecrets;Replace traefik dashboard
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-07-18 12:09:54 +02:00
parent 9e91bef7b7
commit 193ce9a534
5 changed files with 74 additions and 22 deletions

View File

@ -55,16 +55,16 @@
chdir: /opt/metacluster/container-images
loop: "{{ (containerimages.results | map(attribute='stdout_lines') | flatten) + dependencies.container_images }}"
- name: Inject manifests
ansible.builtin.template:
src: "{{ item.type }}.j2"
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml
owner: root
group: root
mode: 0600
loop: "{{ lookup('ansible.builtin.dict', components) | map(attribute='value.manifests') | list | select('defined') | flatten }}"
loop_control:
label: "{{ item.type + '/' + item.name }}"
# - name: Inject manifests
# ansible.builtin.template:
# src: "{{ item.type }}.j2"
# dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml
# owner: root
# group: root
# mode: 0600
# loop: "{{ lookup('ansible.builtin.dict', components) | map(attribute='value.manifests') | list | select('defined') | flatten }}"
# loop_control:
# label: "{{ item.type + '/' + item.name }}"
- name: Compress tarballs
community.general.archive:

View File

@ -1,7 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ item.name }}
namespace: {{ item.namespace }}
spec:
{{ item.config }}