Define registry mirrors dynamically;Fix path;Fix Ansible config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-10 16:56:13 +01:00
parent e3f44fab0a
commit ab5f082933
7 changed files with 27 additions and 34 deletions

View File

@ -12,7 +12,7 @@ providers:
url: "/opt/metacluster/cluster-api/infrastructure-vsphere/{{ _template.version.infrastructure_vsphere }}/infrastructure-components.yaml"
type: "InfrastructureProvider"
- name: "in-cluster"
url: "/opt/metacluster/cluster-api/ipam-incluster/{{ _template.version.ipam_incluster }}/ipam-components.yaml"
url: "/opt/metacluster/cluster-api/ipam-in-cluster/{{ _template.version.ipam_incluster }}/ipam-components.yaml"
type: "IPAMProvider"
cert-manager:

View File

@ -1,31 +1,8 @@
mirrors:
cr.step.cm:
{% for value in _template.data %}
{{ value }}:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
- https://registry.{{ _template.hv.fqdn }}
rewrite:
"(.*)": "library/cr.step.sm/$1"
docker.io:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/docker.io/$1"
gcr.io:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/gcr.io/$1"
ghcr.io:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/ghcr.io/$1"
k8s.gcr.io:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/k8s.gcr.io/$1"
quay.io:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/quay.io/$1"
"(.*)": "library/{{ value }}/$1"
{% endfor %}