mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2022-11-16 14:00
This commit is contained in:
13
roles/nomad/templates/docker_auth.json.j2
Normal file
13
roles/nomad/templates/docker_auth.json.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"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 %}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user