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)
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/metacluster/dependencies/helm/charts
# - name: Create folder structure(s)
# ansible.builtin.file:
# path: "{{ item }}"
# state: directory
# loop:
# - /foo
- name: Download & install static binaries
ansible.builtin.get_url:

View File

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

View File

@ -3,7 +3,6 @@
path: "{{ item }}"
state: directory
loop:
- /opt/metacluster/components/harbor
- /opt/metacluster/helm-charts
- /opt/metacluster/container-images
@ -24,7 +23,8 @@
- name: Parse helm charts for container images
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
loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control:

View File

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