ansible/roles/lf-recommended-tools.git
4 years agoMerge "Disable MOLECULE_DEBUG=true"
Anil Belur [Mon, 17 Aug 2020 03:23:09 +0000 (03:23 +0000)]
Merge "Disable MOLECULE_DEBUG=true"

4 years agoTest role with CentOS 8 03/65103/2
Thanh Ha [Fri, 14 Aug 2020 18:31:30 +0000 (14:31 -0400)]
Test role with CentOS 8

Adds a test environment for CentOS 8.

Change-Id: I0aee89c84a443055bb052164469cc2a5f841aa72
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
4 years agoDisable MOLECULE_DEBUG=true 01/65101/2
Thanh Ha [Fri, 14 Aug 2020 18:07:17 +0000 (14:07 -0400)]
Disable MOLECULE_DEBUG=true

MOLECULE_DEBUG mode prints out too much information making it difficult
to troubleshoot. Most of the time this isn't necessary because molecule
does print out useful info on failure so let's comment this out and use
it sparingly when we need it.

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

4 years agoDo not install Ansible PPA on Ubuntu 20.04 00/65100/3
Thanh Ha [Fri, 14 Aug 2020 17:29:30 +0000 (13:29 -0400)]
Do not install Ansible PPA on Ubuntu 20.04

Unfortunately the Ansible PPA is not yet available on Ubuntu 20.04 so
do not install it. Also add a TODO note to go back and figure out if
we really still need the PPA. This was added because we wanted to get
a more recent version of Ansible on Ubuntu 16.04 but perhaps the distro
packaged version is sufficient with newer Ubuntu versions.

Ref: https://github.com/ansible/ansible/pull/69161
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I7a02a6e0e95b148c640dfd41f3ea3d50dfff17d9

4 years agoMerge C8 with RedHat 72/64172/1
Andrew Grimberg [Tue, 2 Jun 2020 20:00:48 +0000 (13:00 -0700)]
Merge C8 with RedHat

sshuttle finally released into EPEL so the different C8 and RedHat
configs are no longer needed and sshuttle can be brought back to the
main configuration.

Change-Id: I3d6c7bd61765cd25e5be7aa722cbf120c98630ab
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
5 years agoWait 30 seconds and retry download 87/63787/2
Thanh Ha [Fri, 24 Apr 2020 17:38:58 +0000 (13:38 -0400)]
Wait 30 seconds and retry download

Occassionally fetching PlantUML fails with read timeout or other
intermittent issues. Add configuration to retry a few times before
giving up.

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

5 years agoUpdate role to support CentOS 8 73/63573/2
Andrew Grimberg [Wed, 1 Apr 2020 21:31:47 +0000 (14:31 -0700)]
Update role to support CentOS 8

* Drops installation of sshuttle as that is not presently available for
  CentOS 8

Issue: RELENG-2823
Change-Id: I426112d92cd6886c629744fa1f0cf39e800ad44f
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
5 years agoUpdate molecule tests for v3 03/63403/5
Eric Ball [Thu, 12 Mar 2020 22:18:50 +0000 (15:18 -0700)]
Update molecule tests for v3

The lint section is now a single shell script.
playbook.yml is now named converge.yml.
docker_image_facts renamed to docker_image_info.
path, dockerfile, and force params for docker_image have changed
name/section, and source is now required.
Updated tox requirements.

Issue: RELENG-2721
Change-Id: I5b35afe7a6d75734b14ab895ceb9f0b7c4135a0d
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
5 years agoUpdate sourceforge link to https 85/62085/1
Thanh Ha [Sat, 26 Oct 2019 17:51:45 +0000 (13:51 -0400)]
Update sourceforge link to https

It appears the http link just redirects to https now so let's
point directly to the SSL port and skip the redirect.

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

5 years agoInstall tree command 61/62061/6
Aric Gardner [Mon, 21 Oct 2019 20:47:16 +0000 (16:47 -0400)]
Install tree command

The tree command is required to create index files
which is required for bucket level file listing on
AWS S3.

molecule tests fail on python3!

TASK [Create Dockerfiles from image names]
*************************************
13:55:49     failed: [localhost] (item=None) => {"censored": "the output
has been hidden due to the fact that 'no_log: true' was specified for
this result", "changed": false}
    fixed with:
+export MOLECULE_DEBUG=True

"msg": "Aborting, target uses selinux but python bindings
(libselinux-python) aren't installed!"
    fixed with:
deps = selinux

libselinux python3 bindins are missing from centos7.7
https://bugs.centos.org/view.php?id=16389
    fixed with:
-basepython = python3

WARNING: test command found but not installed in testenv
    fixed with:
whitelist_externals = which

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I66025284e0251b248cb035207d17034531709616

5 years agoUbuntu: Install all required libraries for Pyenv 85/61785/2
Aric Gardner [Thu, 19 Sep 2019 19:16:23 +0000 (15:16 -0400)]
Ubuntu: Install all required libraries for Pyenv

https://github.com/pyenv/pyenv/wiki/Common-build-problems

ISSUE: IT-17316
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Id9945a8a206dffb1816f7e7a8d4d79e807988736

5 years agoMerge "Install all required libraries for Pyenv"
Aric Gardner [Fri, 6 Sep 2019 18:01:23 +0000 (18:01 +0000)]
Merge "Install all required libraries for Pyenv"

5 years agoMerge "Configure basepython to python3"
Aric Gardner [Tue, 27 Aug 2019 20:16:53 +0000 (20:16 +0000)]
Merge "Configure basepython to python3"

5 years agoRemove git-review package 11/16711/1
Suresh Channamallu [Tue, 27 Aug 2019 19:31:37 +0000 (15:31 -0400)]
Remove git-review package

Git-review is not used anymore

Issue: RELENG-2074
Signed-off-by: Suresh Channamallu <schannamallu@linuxfoundation.org>
Change-Id: Iced7a4f5adc0cea5ac4b1de1b615b617c7d3ff18

5 years agoConfigure basepython to python3 97/16697/1
Thanh Ha [Tue, 27 Aug 2019 18:59:50 +0000 (14:59 -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: I507f1fa6c55356abb5bc780f4fb672d03d9edffb

5 years agoInstall all required libraries for Pyenv 71/16671/3
Aric Gardner [Mon, 26 Aug 2019 18:24:05 +0000 (14:24 -0400)]
Install all required libraries for Pyenv

https://github.com/pyenv/pyenv/wiki/Common-build-problems

ISSUE: IT-17316
Change-Id: Ic22d4ed31a01d3d2f4fef391415347cfd1aa5647
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoPin more-itertools~=5.0.0 75/16675/1
Anil Belur [Tue, 27 Aug 2019 03:13:50 +0000 (08:43 +0530)]
Pin more-itertools~=5.0.0

Pin more-itertools ~= 5.0.0, since version 6.0.0 requires Python 3.4
https://github.com/erikrose/more-itertools/releases

Error:
more-itertools requires Python '>=3.4' but the running Python is 2.7.5

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

5 years agoUse Python 3 for molecule tests
Thanh Ha [Tue, 20 Aug 2019 02:36:38 +0000 (22:36 -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: I79104c8633ac490510d9391a24beb424c9324b7f

5 years agoRevert "Add packagecloud deps to ansible role" 22/16622/1
Andrew Grimberg [Tue, 20 Aug 2019 18:33:06 +0000 (11:33 -0700)]
Revert "Add packagecloud deps to ansible role"

This reverts commit 07b3e6afe811bf7d0ca7d50946a05c8b45906371.

Installation of package_cloud is not working as expected

Issue: RELENG-2240
Change-Id: I94b7cabdae6e63995fadaa65bac4446425c90c7d
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
5 years agoAdd packagecloud deps to ansible role 59/16359/16
Suresh Channamallu [Mon, 29 Jul 2019 19:35:00 +0000 (15:35 -0400)]
Add packagecloud deps to ansible role

Add ruby_dev, rake, package_cloud gem installation
steps

Issue: RELENG-2240
Signed-off-by: Suresh Channamallu <schannamallu@linuxfoundation.org>
Change-Id: I990d0b5a661664c8e20285b39f1ca8da4c480a8e

5 years agoAdd curl and wget to tools list 41/16041/3
Thanh Ha [Sat, 29 Jun 2019 22:44:02 +0000 (18:44 -0400)]
Add curl and wget to tools list

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

5 years agoPin pytest to 4.6.x 42/16042/2
Thanh Ha [Sun, 30 Jun 2019 02:19:33 +0000 (22:19 -0400)]
Pin pytest to 4.6.x

PyTest 5 was released on June 28th that now requires Python >= 3.5
so pin to the 4.6.x stream until we are ready to drop 2.7 support.

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

5 years agoUse pre-commit instead of Coala 07/15607/3
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: I0a5dfee8eab3680f472bb6ad6b62c79e7ba4a7b2

5 years agoRevert "Install ius and swap git2u for git" 81/15981/2
Andrew Grimberg [Mon, 24 Jun 2019 22:36:20 +0000 (08:36 +1000)]
Revert "Install ius and swap git2u for git"

This reverts commit ae351944b9b77dfd8ea347f477593e38250cd481.

Reverting as common-packer has code that will fail if it isn't updated
first

Change-Id: Idcf6b8e6e72b03644a8cca69491f6acaa78c8dc7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoInstall ius and swap git2u for git on RHEL systems 80/15980/1
Andrew Grimberg [Mon, 24 Jun 2019 21:53:05 +0000 (14:53 -0700)]
Install ius and swap git2u for git on RHEL systems

Some of our jobs are failing, or at least having issues, due to not
having a recent enough version of git on the CentOS systems. Updating
the base recommended tooling to include a newer version of git on RHEL
systems should resolve this problem.

Issue: RELENG-2143
Change-Id: I2c690c94d0602b8790e37432ba2e24671e8cccb3
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
5 years agoPin ansible and ansible-lint 79/15979/1
Andrew Grimberg [Mon, 24 Jun 2019 20:57:34 +0000 (13:57 -0700)]
Pin ansible and ansible-lint

Both ansible and ansible-lint need to be pinned to be able to pass the
molecule tests at this time.

Change-Id: Id29d3afbc998fe987be5f57428c061f62229389b
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
6 years agoAdd zip to list of common packages 31/13031/1
Jeremy Phelps [Wed, 17 Oct 2018 17:22:12 +0000 (12:22 -0500)]
Add zip to list of common packages

Change-Id: Ic061a79b392631a6f7b400d6b83db8a16e095324
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
6 years agoAdd PlantUML for generating UML diagrams 81/12081/3
Thanh Ha [Thu, 2 Aug 2018 17:03:23 +0000 (13:03 -0400)]
Add PlantUML for generating UML diagrams

Used by Java projects to generate their UML diagrams.

Change-Id: I92dbf23367c356cbf23a0c8dc929247c9b269430
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAdd dos2unix tool 38/12038/1
Thanh Ha [Mon, 30 Jul 2018 23:16:31 +0000 (19:16 -0400)]
Add dos2unix tool

Change-Id: I367535632a0008762f1f38e2194d6e8dabcf9617
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMigrate from deprecated docker-py to docker 86/11886/1
Thanh Ha [Fri, 20 Jul 2018 18:39:35 +0000 (14:39 -0400)]
Migrate from deprecated docker-py to docker

Change-Id: Ia77ab36a0a63cab1d08e9b5be6bf3b9bb6b60f7a
Signed-off-by: Thanh Ha <zxiiro@linux.com>
7 years agoInstall Ansible PPA on Ubuntu systems 19/10419/1
Thanh Ha [Thu, 3 May 2018 21:22:37 +0000 (17:22 -0400)]
Install Ansible PPA on Ubuntu systems

Issue: RELENG-786
Change-Id: I3d13f25c90ee9467c7a35d254d8bcb2a4fc21b2f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd dstat 18/9018/2
Mohammed Naser [Fri, 23 Feb 2018 01:46:17 +0000 (20:46 -0500)]
Add dstat

This patch adds dstat which is extremely useful in collecting
metrics of a system to verify performance.

Change-Id: I2f0c33c1c8c879c52a094d54fc6a01cf7411e231
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
7 years agoAdd fedora-packager to specific vars file 17/9017/3
Mohammed Naser [Fri, 23 Feb 2018 01:44:22 +0000 (20:44 -0500)]
Add fedora-packager to specific vars file

There is no need to install it seperately, being able to load the
correct lf_recommended_tools_packages_distro based on the OS means
it will be listed there automagically!

Change-Id: I9f1d8ec9542420ddf65411616ffa4d0bd19b8009
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
7 years agoRefactor to install in a single transaction 16/9016/2
Mohammed Naser [Fri, 23 Feb 2018 01:41:13 +0000 (20:41 -0500)]
Refactor to install in a single transaction

This patch moves the variables to the appropriate vars folder with
the correct ansible_os_family.  It lists all of the common packages
in main.yml and distro-specific in the respective YAML file.

It also makes the installation happen with a single transaction
by providing a list to the package module.

Change-Id: Ie9b955280ef488c1e938d2925f1bdf7a7e78ea1a
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
7 years agoMigrate lf-ansible lf-recommended-tools role 15/9015/1
Thanh Ha [Fri, 23 Feb 2018 01:08:41 +0000 (20:08 -0500)]
Migrate lf-ansible lf-recommended-tools role

Change-Id: I9dd56e6d5e44ab951e64660f6d551df79fb35aaf
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBootstrap lf-recommended-tools role 14/9014/1
Thanh Ha [Fri, 23 Feb 2018 01:08:41 +0000 (20:08 -0500)]
Bootstrap lf-recommended-tools role

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