Fix firstboot logic;Refactor helm chart parsing;Housekeeping
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2022-06-27 08:44:16 +02:00
parent 72202d9f21
commit 8ed9b2f754
4 changed files with 10 additions and 10 deletions

View File

@ -1,9 +1,9 @@
- name: Create folder structure(s) # - name: Create folder structure(s)
ansible.builtin.file: # ansible.builtin.file:
path: "{{ item }}" # path: "{{ item }}"
state: directory # state: directory
loop: # loop:
- /opt/metacluster/dependencies/helm/charts # - /foo
- name: Download & install static binaries - name: Download & install static binaries
ansible.builtin.get_url: ansible.builtin.get_url:

View File

@ -1,7 +1,7 @@
- name: Install K3s - name: Install K3s
ansible.builtin.command: ansible.builtin.command:
cmd: ./install.sh cmd: ./install.sh
chdir: /opt/metacluster/xxx chdir: /opt/metacluster/k3s
environment: environment:
INSTALL_K3S_SKIP_DOWNLOAD: 'true' INSTALL_K3S_SKIP_DOWNLOAD: 'true'
INSTALL_K3S_EXEC: 'server --cluster-init' INSTALL_K3S_EXEC: 'server --cluster-init'

View File

@ -3,7 +3,6 @@
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
loop: loop:
- /opt/metacluster/components/harbor
- /opt/metacluster/helm-charts - /opt/metacluster/helm-charts
- /opt/metacluster/container-images - /opt/metacluster/container-images
@ -24,7 +23,8 @@
- name: Parse helm charts for container images - name: Parse helm charts for container images
ansible.builtin.command: ansible.builtin.command:
cmd: "{{ item.value.helm.parse_logic }} /opt/metacluster/helm-charts/{{ item.key }}/values.yaml" cmd: helm template . | yq e '.. | .image? | select(.)' -N | sort -u
chdir: /opt/metacluster/helm-charts/{{ item.key }}
register: containerimages register: containerimages
loop: "{{ lookup('ansible.builtin.dict', components) }}" loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control: loop_control:

View File

@ -22,7 +22,7 @@
- name: Download K3s install script - name: Download K3s install script
ansible.builtin.get_url: ansible.builtin.get_url:
url: https://get.k3s.io url: https://get.k3s.io
dest: /opt/metacluster/k3s dest: /opt/metacluster/k3s/install.sh
owner: root owner: root
group: root group: root
mode: 0755 mode: 0755