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

This commit is contained in:
Danny Bessems 2022-11-06 20:04:28 +01:00
parent 9199809da5
commit 35ced380a4

View File

@ -51,23 +51,23 @@
loop: loop:
# This list is based on `clusterctl config repositories` # This list is based on `clusterctl config repositories`
# Note: Each manifest also needs a metadata.yaml file stored in the respective folder # Note: Each manifest also needs a metadata.yaml file stored in the respective folder
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/bootstrap-components.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/bootstrap-components.yaml
dest: bootstrap-kubeadm/{{ components.cluster-api.manifest.version.base }}/bootstrap-components.yaml dest: bootstrap-kubeadm/{{ components.clusterapi.manifest.version.base }}/bootstrap-components.yaml
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/core-components.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/core-components.yaml
dest: cluster-api/{{ components.cluster-api.manifest.version.base }}/core-components.yaml dest: cluster-api/{{ components.clusterapi.manifest.version.base }}/core-components.yaml
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/control-plane-components.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/control-plane-components.yaml
dest: control-plane-kubeadm/{{ components.cluster-api.manifest.version.base }}/control-plane-components.yaml dest: control-plane-kubeadm/{{ components.clusterapi.manifest.version.base }}/control-plane-components.yaml
- url: cluster-api-provider-vsphere/releases/{{ components.cluster-api.manifest.version.infrastructure-vsphere }}/download/infrastructure-components.yaml - url: cluster-api-provider-vsphere/releases/{{ components.clusterapi.manifest.version.infrastructure_vsphere }}/download/infrastructure-components.yaml
dest: infrastructure-vsphere/{{ components.cluster-api.manifest.version.infrastructure-vsphere }}/infrastructure-components.yaml dest: infrastructure-vsphere/{{ components.clusterapi.manifest.version.infrastructure_vsphere }}/infrastructure-components.yaml
- url: cluster-api-provider-vsphere/releases/{{ components.cluster-api.manifest.version.infrastructure-vsphere }}/download/metadata.yaml - url: cluster-api-provider-vsphere/releases/{{ components.clusterapi.manifest.version.infrastructure_vsphere }}/download/metadata.yaml
dest: infrastructure-vsphere/{{ components.cluster-api.manifest.version.infrastructure-vsphere }}/metadata.yaml dest: infrastructure-vsphere/{{ components.clusterapi.manifest.version.infrastructure_vsphere }}/metadata.yaml
# This downloads the same metadata.yaml file to three separate folders # This downloads the same metadata.yaml file to three separate folders
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/metadata.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/metadata.yaml
dest: bootstrap-kubeadm/{{ components.cluster-api.manifest.version.base }}/metadata.yaml dest: bootstrap-kubeadm/{{ components.clusterapi.manifest.version.base }}/metadata.yaml
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/metadata.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/metadata.yaml
dest: cluster-api/{{ components.cluster-api.manifest.version.base }}/metadata.yaml dest: cluster-api/{{ components.clusterapi.manifest.version.base }}/metadata.yaml
- url: cluster-api/releases/{{ components.cluster-api.manifest.version.base }}/download/metadata.yaml - url: cluster-api/releases/{{ components.clusterapi.manifest.version.base }}/download/metadata.yaml
dest: control-plane-kubeadm/{{ components.cluster-api.manifest.version.base }}/metadata.yaml dest: control-plane-kubeadm/{{ components.clusterapi.manifest.version.base }}/metadata.yaml
loop_control: loop_control:
label: "{{ item.url | basename }}" label: "{{ item.url | basename }}"
@ -86,19 +86,19 @@
# ansible.builtin.set_fact: # ansible.builtin.set_fact:
# clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}" # clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
# - name: Configure clusterctl - name: Configure clusterctl
# ansible.builtin.template: ansible.builtin.template:
# src: clusterctl.j2 src: clusterctl.j2
# dest: /opt/metacluster/manifests/clusterctl.yaml dest: /opt/metacluster/manifests/clusterctl.yaml
# vars: vars:
# _template: _template:
# hv: hv:
# username: fqdn: vapp['hv.fqdn']
# password: username: vapp['hv.username']
# fqdn: password: vapp['hv.password']
# version: version:
# base: base: components.clusterapi.manifest.version.base
# infrastructure_vsphere: infrastructure_vsphere: components.clusterapi.manifest.version.infrastructure_vsphere
- name: Parse helm charts for container images - name: Parse helm charts for container images
ansible.builtin.shell: ansible.builtin.shell: