Commit Graph

4 Commits

Author SHA1 Message Date
James E. Blair 90fc18f621 Split docker mirror config into its own role
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
2019-02-21 14:07:43 -08:00
Jens Harbott b43e406edd Alwas use pathless docker mirror URI
It seems that we need the pathless docker mirror URI for distro docker
now, too, so set it unconditionally.

Change-Id: Ic6918312ec60efba0397b85ee16d91c6393ee90b
2018-12-17 13:42:02 +00:00
Monty Taylor b640d5c97a
Don't write docker proxy config if docker_mirror undef
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
2018-07-16 12:47:06 -05:00
Monty Taylor 899bd89833
Add role for installing docker and configuring registry mirror
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
2018-07-15 13:06:36 -05:00