zuul-jobs/roles/use-docker-mirror
Clark Boylan 589cccb055 Fix dockerhub check in use-docker-mirror role
We were checking if dockerhub is a valid key in the
zuul_site_mirror_info/mirror_info dictionaries but did so without
quoting dockerhub as a string. This meant ansible tried to look up
dockerhub as a variable producing this error:

  The conditional check 'dockerhub is in zuul_site_mirror_info' failed.
  The error was: error while evaluating conditional (dockerhub is in
  zuul_site_mirror_info): 'dockerhub' is undefined. 'dockerhub' is undefined

Fix this by quoting dockerhub so that we lookup the string as a key
instead of a variable.

Change-Id: Ie869b9b52fd0a5b70fc07548ce449937ed2c9589
2024-11-20 23:06:10 +00:00
..
tasks Fix dockerhub check in use-docker-mirror role 2024-11-20 23:06:10 +00:00
templates Split docker mirror config into its own role 2019-02-21 14:07:43 -08:00
README.rst Rename install-docker to ensure-docker for consistency 2020-04-04 15:41:29 -04:00

Configure docker to use mirrors if available.

Role Variables

URL to override the generated docker hub mirror url based on :zuulensure-docker.mirror_fqdn.