ansible/roles/docker-install.git
6 months agoFeat: Enable Github2gerrit worflow 66/73266/1 master
Anil Belur [Thu, 24 Oct 2024 03:06:52 +0000 (13:06 +1000)]
Feat: Enable Github2gerrit worflow

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I63410ffe8f1cc834f2bb3a8b22d8de9dd8587a39

6 months agoCI: Update gerrit-verify workflow 54/73254/1
Anil Belur [Thu, 24 Oct 2024 02:32:07 +0000 (12:32 +1000)]
CI: Update gerrit-verify workflow

Centos7, Centos8, and Ubuntu1804 are all EOL and should be removed
from the testing matrix. This will allow us to focus on the supported
distros.

Pull in the latest updates.

Change-Id: I1ab4fff237875f9d9722237a552b6b3f9554f73c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
14 months agoFix: Update docker install ansible role 34/72634/1
Anil Belur [Sun, 11 Feb 2024 02:21:42 +0000 (12:21 +1000)]
Fix: Update docker install ansible role

Update molecule test formats and update the role to build with
latest version of ansible. Fix ansible lint errors and warnings.

Update tox and pre-commit dependencies to build with latest versions
of ansible and molecule.

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ic12f9ef7549ed924117446a00f066e4bf110b694

14 months agoFix: Rename .github/workflow to workflows 21/72621/1
Anil Belur [Tue, 6 Feb 2024 03:12:27 +0000 (13:12 +1000)]
Fix: Rename .github/workflow to workflows

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I891b35d79c451daf891933302c5535f300351f5c

14 months agoCI: Update checkout gerrit change action to v0.6 07/72607/1
Anil Belur [Sun, 4 Feb 2024 07:26:50 +0000 (17:26 +1000)]
CI: Update checkout gerrit change action to v0.6

Add update python version 3.10, v3.8 is close to EOL
by Oct 2024.

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I1b591f4bb300d1ff10f7f82571d7faa1865667d6

15 months agoChore: Update the pre-commit deps to latest 72/72572/2
Anil Belur [Tue, 23 Jan 2024 22:11:05 +0000 (14:11 -0800)]
Chore: Update the pre-commit deps to latest

ERROR! the role 'java-install' was not found in <>
The error appears to be in '': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax
problem.

Update role name to match the role path on GHA and
Jenkins jobs.

Ref: https://github.com/ansible/molecule/issues/1042
Change-Id: I30299ee2670224d3a4e6448ee78aafaff5cc5b1b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
15 months agoCI: Update vars and secrets names as per LFIT repo 60/72560/1
Anil Belur [Thu, 18 Jan 2024 07:26:49 +0000 (17:26 +1000)]
CI: Update vars and secrets names as per LFIT repo

LFIT uses a slighty diff nomenclature prefixes some vars and secrets
with LFIT_*.

Remove tox-verify job and directly run molecule through GHA.

Issue: RELENG-5094
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ic10362b8e920f6d6155ba16acffdbe533bb34e80

15 months agoFix: Docker deps conflits on CentOS 8 22/70522/25
Anil Belur [Wed, 13 Dec 2023 09:59:12 +0000 (19:59 +1000)]
Fix: Docker deps conflits on CentOS 8

Error:
Problem: package containers-common-2:1-57 from appstream
requires runc, but none of the providers can be installed

Problem: problem with installed package podman-3:4.6.1-5

Update pre-commit and molecule dependencies

Add GHA workflow to test ansible roles.

Issue: RELENG-5094
Change-Id: Ib61fc75c8775327e1f52fabd5252c9dd662655d9
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoIgnore docker service errors 46/62646/7
Thanh Ha [Tue, 17 Dec 2019 17:12:06 +0000 (12:12 -0500)]
Ignore docker service errors

The docker_service_enable switch was a hacky workaround to allow
molecule to be able to run the docker role. Rather than introducing
a variable that is not used anywhere an alternative is to just
ignore the error from the service enable command.

This command is expected to pass in VMs but fail in docker containers
due to missing systemctl. It is not critical that the service is
enabled so this is a reasonable alternative to using an otherwise
unused variable.

Change-Id: I25984ca2fd5e6141b29a23cb5feb4d1283eddd1a
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoUpdate lint section for molecule v3 95/63395/3
Thanh Ha [Thu, 12 Mar 2020 17:16:44 +0000 (13:16 -0400)]
Update lint section for molecule v3

Starting with Molecule v3 the linting section has been changed to
straight up shell and no longer supports the old v2 format.

This also removes default Molecule files, which are no longer needed,
and would require unnecessary upkeep.

Ref: https://molecule.readthedocs.io/en/latest/configuration.html#lint
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: Iaa40efc377409e08e6efd41aa967249f9d3c4bbd

5 years agoConfigure basepython to python3 93/16693/1
Thanh Ha [Tue, 27 Aug 2019 18:52:12 +0000 (14:52 -0400)]
Configure basepython to python3

More and more libraries that we are pulling in require Python 3 so
to avoid having to play the pin dependencies whack-a-mole game let's
bump or base python where possible to python3.

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

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