So that the docker mirror configuration can be used without the
install-docker role (e.g., if another process is used to install
docker on a target host), split the part of the role which
configures mirrors into its own role and include it in the
install-docker role.
Change-Id: I7cd7f61e2d1281cd2949c1f69a081c7217d0d328
It seems that we need the pathless docker mirror URI for distro docker
now, too, so set it unconditionally.
Change-Id: Ic6918312ec60efba0397b85ee16d91c6393ee90b
If docker_mirror isn't set, we set one. But if we do it when mirror_fqdn
isn't set, we get a bogus value. Put in guards for that so that we don't
write out bad values.
Change-Id: Ie56d9a83fbabcc99420ce28a8a8f1bb562db0470
There are two different ways to install docker - from upstream repos or
from distro. At the moment each of these carries with it the need for a
different caching proxy setup.
Add a role that will install docker from upstream by default, but which
also supports installing directly from distros. The role also sets up
the registry proxy appropriately for each.
This role at the moment only works on ubuntu. It should obviously be
updated to work on centos and fedora as well.
Needed-By: https://review.openstack.org/580160
Change-Id: I7d6bac68a2c0fecf13a8bd9535a3fdeb85e7d999