ansible/roles/docker-install.git
5 years agoUse Python 3 for molecule tests 08/16608/1
Thanh Ha [Tue, 20 Aug 2019 02:33:48 +0000 (22:33 -0400)]
Use Python 3 for molecule tests

PyTest 5.0 requires Python 3.5+ so let's update.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I422322c4eac7a0812125e6f9e789c24a5512b697

5 years agoUse pre-commit instead of Coala 03/15603/2
Thanh Ha [Sat, 11 May 2019 01:24:47 +0000 (21:24 -0400)]
Use pre-commit instead of Coala

Considering that all we're using Coala for is for the GitCommitBear
let's drop Coala in favor of pre-commit as it's faster and more
convenient.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I932f2acbcf82b41ffdb4296e5fc395be100dce6a

6 years agoRewrite docker daemon command for Red Hat systems 14/15314/1
Eric Ball [Wed, 17 Apr 2019 17:09:08 +0000 (10:09 -0700)]
Rewrite docker daemon command for Red Hat systems

The default daemon command includes options, which are incompatible
with options that are supplied via daemon.json. This fix was already
implemented for Ubuntu, but was thought at the time to be system-
specific. It appears it just took longer for the bug to show up on
CentOS systems.

Issue: RELENG-1903
Change-Id: I2cf7dfa4dfbda87ac76e0e1c7fe36338d69a3779
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
6 years agoFix docker-ce repo for ARM64 72/15072/3
Martin Klozik [Fri, 29 Mar 2019 14:13:57 +0000 (15:13 +0100)]
Fix docker-ce repo for ARM64

Docker-ce apt repository used armhf (32bit) architecture tag
instead of correct arm64.
Remove "edge" repo channel enforcement for Ubuntu 18.04 and ARM as it
is not necessary. Both 32bit and 64bit ARM binaries of docker-ce
are available in the stable repo channel.
Adding spaces around variable names to avoid ansible lint issue [206].

Change-Id: I4a677681a3427e5993b566f4572611feaa17417a
Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
6 years agoAdd docker-ce edge channel option for Ubuntu 18.04 28/14228/8
James Gregg [Wed, 16 Jan 2019 21:11:40 +0000 (14:11 -0700)]
Add docker-ce edge channel option for Ubuntu 18.04

Change-Id: I7072404fe6d35646f05d88ce4a132def35a43604
Signed-off-by: James Gregg <james.r.gregg@intel.com>
6 years agoFix bad indent for copy task 79/14279/1
Eric Ball [Wed, 23 Jan 2019 00:10:53 +0000 (16:10 -0800)]
Fix bad indent for copy task

This was causing tox failures for new changes to this role.

Change-Id: I2a99ec122306bc1a5703692ad15f8dc1356a1c5b
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
6 years agoAdd molecule tests for passing version 10/12610/6
Jeremy Phelps [Fri, 14 Sep 2018 18:58:36 +0000 (13:58 -0500)]
Add molecule tests for passing version

This test the case when user pass a version in instead of relying on
the role to pick the default, which is the latest.

Change-Id: If6cc60c556b27f1ad5f28c1597578753ad676391
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
6 years agoAllow version to be set by end user 39/12539/21
Jeremy Phelps [Thu, 16 Aug 2018 19:53:17 +0000 (14:53 -0500)]
Allow version to be set by end user

In the case that the version is not set, then the role will simply
install the latest available from the docker repos.

Change-Id: I31d84ac1eb8e40c829247dc194d24197dc019508
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
6 years agoParameterize arch with ansible_architecture 86/12286/16
Jeremy Phelps [Thu, 16 Aug 2018 19:53:17 +0000 (14:53 -0500)]
Parameterize arch with ansible_architecture

Note that docker uses armhf instead of aarch64.

Change-Id: I70c1734f9435f44dda3a314141ac0c1675b2a544
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
6 years agoAdd molecule testing for CentOS machines 41/12541/6
Thanh Ha [Tue, 11 Sep 2018 20:21:19 +0000 (16:21 -0400)]
Add molecule testing for CentOS machines

Add the systemd workaround for CentOS systems so that we can
enable molecule testing.

Change-Id: I3cdeb4b386f8c2ea4183be0423fd7b5daf3ebda2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoUse docker instead of docker-py for molecule 15/11715/1
Trevor Bramwell [Tue, 10 Jul 2018 17:25:24 +0000 (10:25 -0700)]
Use docker instead of docker-py for molecule

`docker` has replaced `docker-py` as the python library for talking to
the Docker api.

Change-Id: Ia215ba0a8e681cf0c5a5b09048267dd58ce741d6
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMigrate lf-ansible docker-install role 69/8969/7
Thanh Ha [Wed, 21 Feb 2018 20:24:55 +0000 (15:24 -0500)]
Migrate lf-ansible docker-install role

Move in docker-install role from lf-ansible.

Change-Id: I68328c65be64855d8c49b463a215c60116269f2d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBootstrap docker-install role 68/8968/3
Thanh Ha [Wed, 21 Feb 2018 19:57:15 +0000 (14:57 -0500)]
Bootstrap docker-install role

Initial docker-install role. Currently does nothing and only contains
metadata information.

Change-Id: Id0191ebd0b2aae5b2d15aca749d2bdfa7a810592
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoInitial empty repository
Andrew Grimberg [Tue, 20 Feb 2018 21:59:11 +0000 (21:59 +0000)]
Initial empty repository