mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-15 22:34:21 +03:00
* Add header configuration in containerd hosts.toml Signed-off-by: Alexander Gil <pando855@gmail.com> * Disable log output on containerd mirrors settings if required Signed-off-by: Alexander Gil <pando855@gmail.com> --------- Signed-off-by: Alexander Gil <pando855@gmail.com>
20 lines
849 B
Django/Jinja
20 lines
849 B
Django/Jinja
server = "{{ item.server | default("https://" + item.prefix) }}"
|
|
{% for mirror in item.mirrors %}
|
|
[host."{{ mirror.host }}"]
|
|
capabilities = ["{{ ([ mirror.capabilities ] | flatten ) | join('","') }}"]
|
|
skip_verify = {{ mirror.skip_verify | default('false') | string | lower }}
|
|
override_path = {{ mirror.override_path | default('false') | string | lower }}
|
|
{% if mirror.ca is defined %}
|
|
ca = ["{{ ([ mirror.ca ] | flatten ) | join('","') }}"]
|
|
{% endif %}
|
|
{% if mirror.client is defined %}
|
|
client = [{% for pair in mirror.client %}["{{ pair[0] }}", "{{ pair[1] }}"]{% if not loop.last %},{% endif %}{% endfor %}]
|
|
{% endif %}
|
|
{% if mirror.header is defined %}
|
|
[host."{{ mirror.host }}".header]
|
|
{% for key, value in mirror.header.items() %}
|
|
{{ key }} = ["{{ ([ value ] | flatten ) | join('","') }}"]
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|