Fix variable names;Add clusterctl config template
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-06 14:21:35 +01:00
parent 806bf24fc0
commit 9199809da5
3 changed files with 46 additions and 6 deletions

View File

@ -4,10 +4,10 @@
state: directory
loop:
- /opt/metacluster/helm-charts
- /opt/metacluster/manifests/bootstrap-kubeadm/{{ components.cluster-api.manifest.version.base }}
- /opt/metacluster/manifests/cluster-api/{{ components.cluster-api.manifest.version.base }}
- /opt/metacluster/manifests/control-plane-kubeadm/{{ components.cluster-api.manifest.version.base }}
- /opt/metacluster/manifests/infrastructure-vsphere/{{ components.cluster-api.manifest.version.infrastructure-vsphere }}
- /opt/metacluster/manifests/bootstrap-kubeadm/{{ components.clusterapi.manifest.version.base }}
- /opt/metacluster/manifests/cluster-api/{{ components.clusterapi.manifest.version.base }}
- /opt/metacluster/manifests/control-plane-kubeadm/{{ components.clusterapi.manifest.version.base }}
- /opt/metacluster/manifests/infrastructure-vsphere/{{ components.clusterapi.manifest.version.infrastructure_vsphere }}
- /opt/metacluster/container-images
- name: Add helm repositories
@ -86,6 +86,20 @@
# ansible.builtin.set_fact:
# clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
# - name: Configure clusterctl
# ansible.builtin.template:
# src: clusterctl.j2
# dest: /opt/metacluster/manifests/clusterctl.yaml
# vars:
# _template:
# hv:
# username:
# password:
# fqdn:
# version:
# base:
# infrastructure_vsphere:
- name: Parse helm charts for container images
ansible.builtin.shell:
cmd: "{{ item.value.helm.parse_logic }}"