Commit Graph

12 Commits

Author SHA1 Message Date
vass ef2f2eacb1 Remove install-* roles
The install-* roles has been renamed to ensure-* but have been kept
to give users time to update their repositories.

Tuesday the 26th of may is four weeks after we announced the deprecation
of the install-* roles and the date we should remove them completely.

Depends-On: https://review.opendev.org/719323
Depends-On: https://review.opendev.org/719324
Depends-On: https://review.opendev.org/719325
Depends-On: https://review.opendev.org/719326
Depends-On: https://review.opendev.org/719333
Depends-On: https://review.opendev.org/719334
Depends-On: https://review.opendev.org/719401
Depends-On: https://review.opendev.org/719402
Depends-On: https://review.opendev.org/719404

Change-Id: I1bc87cf9ef544c06e2f1daf3177bba9d577e332e
2020-05-26 09:34:25 +02:00
vass c80b593fb6 Rename install-docker to ensure-docker for consistency
The old role will be kept and include ensure-docker for backwards compatability.

Change-Id: Icb76a954b04631c405b09eb54343fd852a511b83
2020-04-04 15:41:29 -04:00
Sorin Sbarnea cce6535468 install-docker: allow removal of conflicting packages
Allow us to define which packages need to be removed before installing
the desired ones.

Fixes use of role on systems where it was desired to install upstream
docker but the system one was already installed.

Change-Id: Ib6ae0a8fba937901b29565e2d36486eccf4f67bb
2020-03-30 16:00:23 +01:00
Mohammed Naser ae05322a85 install-docker: add option to use buildset registry
At the moment, the build registry is not used inside Kubernetes jobs
and it is required to override the entire pre.yaml just to enable it.

This patch adds an option of using docker_use_buildset_registry inside
install-docker which can be used in order to install Docker and letting
it use the buildset registry simply by adjusting the job.vars

Change-Id: I1b42eac6accbf7c350aee76d18a823ba6327548d
2020-03-14 18:30:39 -04:00
Zuul 00dc242fc9 Merge "install-docker: option to install docker-compose" 2020-02-17 16:42:44 +00:00
Mohammed Naser 839a179048 install-docker: option to install docker-compose
The install-docker role currently takes care of setting up Docker
however it lacks the ability to install docker-compose at the moment
which is quite useful.

This adds a variable which defaults to false that allows you to use the
role to install docker-compose.  It was decided to be put within the
install-docker role because that role already manages the repository
configuration and therefore provide consistency with the repository that
is used to install docker-compose.

Change-Id: Ia6f4ed88b4baf53bd671c7a7b48a1564ff2c866d
2020-02-16 17:04:58 +00:00
Tristan Cacqueray f8792a73d5 install-docker: enable setting docker userland proxy
This change enables docker user to disable the userland proxy.

Do not merge until the default is set to false (used for testing).

Change-Id: Ib30e409044ccc48b4c19beae36f1bcd453ebef8e
2020-02-14 23:08:45 +00:00
Kevin Carter ab2d368b17
Add variable to set the docker download url
The docker mirror URL can now be set using the following options,
`docker_download_fqdn` and `docker_mirror_base_url`. These
variables will allow folks to use this role with custom mirrors.

To accomodate this change, the repo files have been moved into
templates and now use the jinja2 extension.

Not all supported distros have the ability to install docker
using the upstream mirrors. To ensure a high degree of success
a new sanity check has been added to validate the mirror url
content when upstream installation has been enabled.

Change-Id: Ib9d50581d0df89e36d47dd523efd1adc95fdf4ac
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-06-11 11:12:18 -05:00
Kevin Carter f1f609e09c
Add multi-distro support to install-docker
This change adds the ability for the zuul provided role for docker
installation to support multiple distros automatically. With this
change the role will dynamically load variables based on the
target operating system.

While the default to install from upstream reamains unchanged, the
role will now fall back to installing using the distro packages
in the event there's is a fault with the upstream tasks or if an
upstream task file has not been implemented.

> stubbs for upstream implementation task files have been created.

With this change the role will now support, debian (and family),
opensuse, and red hat (and family). The upstream installation process
is using the documented steps from upstream docker, as found here
[0].

The default "ubuntu_gpg_key" as renamed to "docker_gpg_key" as its
now used for more than one distro.

The daemon.json.j2 template has been removed. This template was
stored here but unused by this role.

[0] https://docs.docker.com/install/linux/docker-ce/fedora/

Change-Id: Ie52444f8c62d6e2f86ce9ba1c17795dd9a6471d2
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-06-11 10:04:28 -05:00
Jean-Philippe Evrard e3e450650b Add docker insecure registries feature
This allows projects to configure insecure registries.
It's especially useful when building/pushing images locally.

Change-Id: I52220b3972f1703f09759f9886176a02b03fb2c5
2018-12-12 09:51:09 +01:00
Ian Wienand 0a7adc6dde install-docker: add package version option
Add a variable to allow selecting a specific docker version.  Useful
if a new docker releases but your jobs aren't quite ready.

Change-Id: Ie4c178d966474476fd2de4489738e47e8a641834
2018-11-08 07:10:29 +00: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