ansible-roles/roles/nomad/templates/docker_auth.json.j2

14 lines
337 B
Django/Jinja

{
"auths": {
{% for auth in nomad_conf.client.task_drivers.docker.auths %}
{% if auth.registry is defined and auth.login is defined and auth.password is defined %}
"{{ auth.registry }}": {
"auth": "{{ (auth.login ~ ':' ~ auth.password) | b64encode }}"
}{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
}
}