ansible/roles/java-install.git
6 years agoUse Python 3 for molecule tests 10/16610/1
Thanh Ha [Tue, 20 Aug 2019 02:35:39 +0000 (22:35 -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: Ic857b44bccbf027aed2930d36a50d7fcce8d2850

6 years agoRemove Java 7 support from RedHat and Ubuntu 08/16508/2
Lott, Christopher (cl778h) [Fri, 9 Aug 2019 18:19:12 +0000 (14:19 -0400)]
Remove Java 7 support from RedHat and Ubuntu

Drop openjdk-7-jdk from Debian tasks
Drop java-1.7.0-openjdk-devel from RedHat tasks

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I05357f6a1b0ea494e3b140bb626b8fafffeac204

6 years agoAdd OpenJDK 12 support for CentOS7 and Ubuntu 45/16145/15
Anil Belur [Wed, 10 Jul 2019 23:12:41 +0000 (09:12 +1000)]
Add OpenJDK 12 support for CentOS7 and Ubuntu

This requires adding the epel-release repo without
which molecule test would fail, since the repos is
not available in the docker container pulled in by
the molecule test.

Issue: RELENG-2202
Change-Id: Id7a8cc988abb1ac884d73b37d2bacb054f649dbf
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoPin ansible, ansible-lint, detox 56/16156/9
Anil Belur [Mon, 22 Jul 2019 12:53:19 +0000 (22:53 +1000)]
Pin ansible, ansible-lint, detox

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

detox 0.19 is not compatible with the version of tox we are getting from
upstream.

Change-Id: Ib7b882de1f5d18f7ed4a40dafbba06960d6c9d0c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoPin pytest to 4.6.x 57/16157/8
Anil Belur [Thu, 11 Jul 2019 00:22:51 +0000 (10:22 +1000)]
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.

Change-Id: Ie09418310386937d476054c9309ef6f2474fa92d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoUse pre-commit instead of Coala 05/15605/4
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: I2f73871427e29c24297d1cb340de735acb51957e

6 years agoFix yamllint: variable spaces before and after 26/15626/2
Thanh Ha [Sat, 11 May 2019 02:13:43 +0000 (22:13 -0400)]
Fix yamllint: variable spaces before and after

* Fix All tasks should be named

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

6 years agoInstall OpenJDK versions individually 68/14368/2
Anil Belur [Wed, 30 Jan 2019 12:47:57 +0000 (22:47 +1000)]
Install OpenJDK versions individually

All versions are not pulled in using the wildcard
format with the yum module and only 1.8.0 is installed
by default.

Change-Id: I3277003d097d5a48eb38d8c1f8d2b202fd6a656c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoMerge "Install JDK 11 on CentOS7 and Ubuntu 16.04"
Anil Belur [Wed, 23 Jan 2019 01:20:25 +0000 (01:20 +0000)]
Merge "Install JDK 11 on CentOS7 and Ubuntu 16.04"

6 years agoInstall JDK 11 on CentOS7 and Ubuntu 16.04 44/12944/16
Anil Belur [Thu, 11 Oct 2018 11:33:00 +0000 (21:33 +1000)]
Install JDK 11 on CentOS7 and Ubuntu 16.04

Install JDK 11 on CentOS 7 and Ubuntu 16.04 platforms.
JDK 11 is going to be official supported version for ODL
which is supported in all the next major releases.
The latest version of JDK 11 is available in Centos 7.6
release.

Also update alternatives to include other JDK tools.

JIRA: RELENG-1536
Change-Id: I7a45aa4ce49fa8a272ecea48a0c04311b976fb8a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoDo not attempt java 7 installation on Ubuntu 18+ 85/13985/1
Eric Ball [Thu, 13 Dec 2018 23:48:12 +0000 (15:48 -0800)]
Do not attempt java 7 installation on Ubuntu 18+

For newer versions of Ubuntu, there is no longer an openjdk-7-jdk
package.

Change-Id: I9063e5e16cfa23aa0bd6cfe609ba9cd0fac1ba69
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
7 years agoRemove JDK9 from Debian bits 36/12636/1
Jeremy Phelps [Tue, 18 Sep 2018 14:18:42 +0000 (09:18 -0500)]
Remove JDK9 from Debian bits

Java 9 is not supported by RedHat even and is not a long-term
support version in any case.

Change-Id: Ic518dcb7068f3f53ed2be0f9bace5b21333b6ff9
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoRemove OpenJDK 9 from CentOS image builds 54/12454/4
Thanh Ha [Tue, 4 Sep 2018 22:26:23 +0000 (18:26 -0400)]
Remove OpenJDK 9 from CentOS image builds

This currently breaks everyone trying to use a CentOS 7 builder as
the repo seems to have disappeared since August 23rd, 2018 (last
known time it worked in OpenDaylight).

This breaks everyone so disable it until we have a new solution to
get OpenJDK 9 installed on CentOS 7 systems.

Officially RedHat (Ref) has stated that they are skipping support
of OpenJDK 9 and 10 and will support 11. We should probably follow
their lead on this one.

Ref: https://access.redhat.com/articles/1299013
Issue: RELENG-1175
Change-Id: Ief7710b6469833423156c9695681379b12d349cb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoFetch openjdk-9 for arm64 directly and install 81/12281/3
Jeremy Phelps [Thu, 16 Aug 2018 19:26:47 +0000 (14:26 -0500)]
Fetch openjdk-9 for arm64 directly and install

This package is not available in apt repo for Ubuntu 18.04.

Change-Id: I28dbb3af245562b37d40b003f278186e93b9dd19
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoDo not instal JDK9 on ARM 65/12265/5
Jeremy Phelps [Thu, 16 Aug 2018 02:56:32 +0000 (21:56 -0500)]
Do not instal JDK9 on ARM

Only install JDK8 for now

Change-Id: I2f9f18e92ae184c4b3941ae5eb0d682929b6befb
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
7 years agoRename debian arm64 file 66/12266/1
Jeremy Phelps [Thu, 16 Aug 2018 03:32:36 +0000 (22:32 -0500)]
Rename debian arm64 file

Change-Id: I06a28d8b24020141d488fec99b2096266a35ef83
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoFix file extension typo 64/12264/1
Jessica Wagantall [Thu, 16 Aug 2018 02:30:02 +0000 (19:30 -0700)]
Fix file extension typo

New ansible_architecture file was mistakenly named
"yaml" instead of "yml"

Change-Id: I594884a482631928f63939dedd87812e18d83f01
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
7 years agoAdd Debian-arm64 Java task 62/12262/4
Jessica Wagantall [Wed, 15 Aug 2018 23:41:46 +0000 (16:41 -0700)]
Add Debian-arm64 Java task

Install JDK8 and JDK9 for ARM64 architectures.

Change-Id: I5ffe5eb7d8cc41421ec0370b6d6837408fdb2d32
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoUse docker instead of docker-py for molecule 16/11716/1
Trevor Bramwell [Tue, 10 Jul 2018 17:33:28 +0000 (10:33 -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: I01589844c06d766a7107f7a925ffabfd972430b0
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMigrate lf-ansible java-install role 82/8982/2
Thanh Ha [Wed, 21 Feb 2018 21:52:05 +0000 (16:52 -0500)]
Migrate lf-ansible java-install role

Change-Id: Ia4ea8d8187b5bed6edb054d0ff11a71171115668
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBootstrap java-install role 75/8975/1
Thanh Ha [Wed, 21 Feb 2018 21:52:05 +0000 (16:52 -0500)]
Bootstrap java-install role

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