Skip to content

Commit

Permalink
Merge pull request #213 from idealista/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sorobon authored Aug 16, 2023
2 parents 492a067 + fb1a617 commit dab7ad5
Show file tree
Hide file tree
Showing 33 changed files with 294 additions and 67 deletions.
81 changes: 61 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: bionic
dist: jammy
language: python
python: 3.9
sudo: required
Expand All @@ -14,19 +14,31 @@ env:
- secure: Iw1sHxmjqF6LPywwMPqbogZ47ZnSWPEDq8k71iqKfao0mDtLMUcmF2yIMLC0MQg1akaBKeHBS4MBQVBaGJDz++rgByzVpHwM0S0ZwUiO2ffVQE4uI+JSEMc1R34/5QPkYsg0FSIDVsCZZ9VnRLKh3GnVHlUljwwfVX5UX0g8RDEHxgdYSGGdAt8iUlQ3/YPSkvuKuNPWHtXCM0tkRYByUVUugSwUuo3rolYVv/S8AcrDf9qhHNkrp4zglC31wurq3M0yjmwHnShl+bLj2lV+QAenmFfjAZWlZ3DxARnSWSlFHMT3PGGWHYpFr2BN/na9ZQqmbWcR8k8XKFv6O205M+Zqao1zvzEpWVZBBiBJwYEVekQk1CzpVQ73sitYLHnmPNK5+W4939dNCkKocNhDf/bJTtaU/JlA64418N4hdjBsXTRfhzAILYJ0ba6a8Qnh5Xeuu3EZlRx6JepYEzy5dJel11MgDNVvaC8r9plCYtfo2ew1OH5QcDqCeaU+hTuXB02tNDWQoXP+aInF4JFqxWuEOlpGZeI3lXKNyHADaNBfziwWwtmBqHKhiLn7a8RJSSrVHRY0LS2YfAi5h4R3YwORlPr9E3I8Sgss21X1D2ocOMjZ4Qdfo5/eteUmEqq3yZBzeynrUwoSR7NYzllVWXMLMOoda2kckXNGaD5U7Es=
jobs:
# Java 8
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_VENDOR=adoptopenjdk JDK_MAJOR=8 JDK_VERSION=8u292-b10-3
DOCKER_TAG_TO_PUBLISH=8u292-bullseye-adoptopenjdk-headless
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_VENDOR=adoptopenjdk JDK_MAJOR=8 JDK_VERSION=8u292-b10-3
DOCKER_TAG_TO_PUBLISH=8u292-buster-adoptopenjdk-headless
- DOCKER_IMAGE_BASE=debian:bookworm-slim JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.382.0.0+5
DOCKER_TAG_TO_PUBLISH=8u382-bookworm-temurin-jdk
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.382.0.0+5
DOCKER_TAG_TO_PUBLISH=8u382-bullseye-temurin-jdk
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.382.0.0+5
DOCKER_TAG_TO_PUBLISH=8u382-buster-temurin-jdk
- DOCKER_IMAGE_BASE=debian:stretch-slim JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.322.0.0+6-1
DOCKER_TAG_TO_PUBLISH=8u322-buster-temurin-jdk

- DOCKER_IMAGE_BASE=ubuntu:bionic JDK_MAJOR=8 JDK_VERSION=8u352-ga-1~18.04
DOCKER_TAG_TO_PUBLISH=8u352-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=8 JDK_VERSION=8u352-ga-1~20.04
DOCKER_TAG_TO_PUBLISH=8u342-focal-openjdk-headless
- DOCKER_IMAGE_BASE=debian:stretch-slim JDK_MAJOR=8 DOCKER_TAG_TO_PUBLISH=8-stretch-openjdk-headless

- DOCKER_IMAGE_BASE=quay.io/centos/centos:stream8 JDK_VENDOR=adoptopenjdk JDK_MAJOR=8
JDK_VERSION=8u292_b10 DOCKER_TAG_TO_PUBLISH=8u292-centos8-adoptopenjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:bionic JDK_MAJOR=8 JDK_VERSION=8u372-ga~us1-0ubuntu1~18.04
DOCKER_TAG_TO_PUBLISH=8u372-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=8 JDK_VERSION=8u382-ga-1~20.04.1
DOCKER_TAG_TO_PUBLISH=8u382-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_MAJOR=8 JDK_VERSION=8u382-ga-1~22.04.1
DOCKER_TAG_TO_PUBLISH=8u382-jammy-openjdk-headless

- DOCKER_IMAGE_BASE=ubuntu:focal JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.382.0.0+5
DOCKER_TAG_TO_PUBLISH=8u382-focal-temurin-jdk
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_VENDOR=temurin JDK_MAJOR=8 JDK_VERSION=8.0.382.0.0+5
DOCKER_TAG_TO_PUBLISH=8u382-jammy-temurin-jdk

- DOCKER_IMAGE_BASE=debian:bookworm-slim JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1:8.302.08-1
DOCKER_TAG_TO_PUBLISH=8u302-bookworm-corretto-headless
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1:8.302.08-1
DOCKER_TAG_TO_PUBLISH=8u302-bullseye-corretto-headless
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_VENDOR=corretto JDK_MAJOR=1.8.0 JDK_VERSION=1:8.302.08-1
Expand All @@ -41,14 +53,29 @@ env:
- DOCKER_IMAGE_BASE=debian:bullseye-slim DOCKER_TAG_TO_PUBLISH=11-bullseye-openjdk-headless
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_MAJOR=11 JDK_VERSION=11.0.18+10-1~deb11u1
DOCKER_TAG_TO_PUBLISH=11.0.18-bullseye-openjdk-headless
- DOCKER_IMAGE_BASE=debian:bookworm-slim DOCKER_TAG_TO_PUBLISH=11-bookworm-openjdk-headless

- DOCKER_IMAGE_BASE=ubuntu:bionic DOCKER_TAG_TO_PUBLISH=11-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:bionic JDK_MAJOR=11 JDK_VERSION=11.0.17+8-1ubuntu2~18.04
DOCKER_TAG_TO_PUBLISH=11.0.17-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=debian:buster-slim JDK_MAJOR=11 JDK_VENDOR=temurin JDK_VERSION=11.0.20.0.0+8
DOCKER_TAG_TO_PUBLISH=11.0.20-buster-temurin-jdk
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_MAJOR=11 JDK_VENDOR=temurin JDK_VERSION=11.0.20.0.0+8
DOCKER_TAG_TO_PUBLISH=11.0.20-bullseye-temurin-jdk
- DOCKER_IMAGE_BASE=debian:bookworm-slim JDK_MAJOR=11 JDK_VENDOR=temurin JDK_VERSION=11.0.20.0.0+8
DOCKER_TAG_TO_PUBLISH=11.0.20-bookworm-temurin-jdk

- DOCKER_IMAGE_BASE=ubuntu:bionic DOCKER_TAG_TO_PUBLISH=11-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:bionic JDK_MAJOR=11 JDK_VERSION=11.0.19+7~us1-0ubuntu1~18.04.1
DOCKER_TAG_TO_PUBLISH=11.0.19-bionic-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal DOCKER_TAG_TO_PUBLISH=11-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=11 JDK_VERSION=11.0.17+8-1ubuntu2~20.04
DOCKER_TAG_TO_PUBLISH=11.0.17-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=11 JDK_VERSION=11.0.20+8-1ubuntu1~20.04
DOCKER_TAG_TO_PUBLISH=11.0.20-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:jammy DOCKER_TAG_TO_PUBLISH=11-jammy-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_MAJOR=11 JDK_VERSION=11.0.20+8-1ubuntu1~22.04
DOCKER_TAG_TO_PUBLISH=11.0.20-jammy-openjdk-headless

- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=11 JDK_VENDOR=temurin JDK_VERSION=11.0.20.0.0+8
DOCKER_TAG_TO_PUBLISH=11.0.20-focal-temurin-jdk
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_MAJOR=11 JDK_VENDOR=temurin JDK_VERSION=11.0.20.0.0+8
DOCKER_TAG_TO_PUBLISH=11.0.20-jammy-temurin-jdk

- DOCKER_IMAGE_BASE=centos:7 JDK_MAJOR=11 JDK_VERSION=11.0.12.0.7 DOCKER_TAG_TO_PUBLISH=11.0.12.0.7-centos7-openjdk-headless
- DOCKER_IMAGE_BASE=quay.io/centos/centos:stream8 JDK_MAJOR=11 JDK_VERSION=11.0.13.0.8
Expand All @@ -59,12 +86,26 @@ env:

# Java 17
- DOCKER_IMAGE_BASE=debian:bullseye-slim DOCKER_TAG_TO_PUBLISH=17-bullseye-openjdk-headless
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_MAJOR=17 JDK_VERSION=17.0.6+10-1~deb11u1
DOCKER_TAG_TO_PUBLISH=17.0.6-bullseye-openjdk-headless
- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_MAJOR=17 JDK_VERSION=17.0.7+7-1~deb11u1
DOCKER_TAG_TO_PUBLISH=17.0.7-bullseye-openjdk-headless
- DOCKER_IMAGE_BASE=debian:bookworm-slim JDK_MAJOR=17 JDK_VERSION=17.0.8+7-1~deb12u1
DOCKER_TAG_TO_PUBLISH=17.0.8-bookworm-openjdk-headless

- DOCKER_IMAGE_BASE=debian:bullseye-slim JDK_MAJOR=17 JDK_VENDOR=temurin JDK_VERSION=17.0.8.0.0+7
DOCKER_TAG_TO_PUBLISH=17.0.8-bullseye-temurin-jdk
- DOCKER_IMAGE_BASE=debian:bookworm-slim JDK_MAJOR=17 JDK_VENDOR=temurin JDK_VERSION=17.0.8.0.0+7
DOCKER_TAG_TO_PUBLISH=17.0.8-bookworm-temurin-jdk

- DOCKER_IMAGE_BASE=ubuntu:focal DOCKER_TAG_TO_PUBLISH=17-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=17 JDK_VERSION=17.0.5+8-2ubuntu1~20.04
DOCKER_TAG_TO_PUBLISH=17.0.5-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=17 JDK_VERSION=17.0.8+7-1~20.04.2
DOCKER_TAG_TO_PUBLISH=17.0.8-focal-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:jammy DOCKER_TAG_TO_PUBLISH=17-jammy-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_MAJOR=17 JDK_VERSION=17.0.8+7-1~22.04
DOCKER_TAG_TO_PUBLISH=17.0.8-jammy-openjdk-headless
- DOCKER_IMAGE_BASE=ubuntu:focal JDK_MAJOR=17 JDK_VENDOR=temurin JDK_VERSION=17.0.8.0.0+7
DOCKER_TAG_TO_PUBLISH=17.0.8-focal-temurin-jdk
- DOCKER_IMAGE_BASE=ubuntu:jammy JDK_MAJOR=17 JDK_VENDOR=temurin JDK_VERSION=17.0.8.0.0+7
DOCKER_TAG_TO_PUBLISH=17.0.8-jammy-temurin-jdk

script:
- pipenv run molecule test --scenario-name=${JDK_VENDOR:-default}
Expand Down
1 change: 0 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ rules:
# NOTE(retr0h): Templates no longer fail this lint rule.
# Uncomment if running old Molecule templates.
# truthy: disable

ignore: |
tests/
.travis.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch

## [Unreleased](https://github.com/idealista/java_role/tree/develop)

## [9.0.0](https://github.com/idealista/java_role/tree/9.0.0) (2023-08-16)
### Added
- *[#210](https://github.com/idealista/java_role/issues/210) Temurin support* @sorobon
- *[#210](https://github.com/idealista/java_role/issues/210) Debian 12 support* @sorobon
- *[#210](https://github.com/idealista/java_role/issues/210) Remove deprecated repositories* @sorobon
### Removed
- *[#210](https://github.com/idealista/java_role/issues/210) Removed adoptopenjdk* @sorobon

## [8.1.0](https://github.com/idealista/java_role/tree/8.1.0) (2023-06-22)
### Added
- *[#207](https://github.com/idealista/java_role/issues/207) Add support for import SSL certificates into Java's truststore* @emepege
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,25 @@ Debian Stretch | `11`
Debian Buster | `11` (default)
Debian Bullseye | `17`
Debian Bullseye | `11` (default)
Debian Bookworm | `17`
Debian Bookworm | `17` (default)
Ubuntu Xenial | `8`
Ubuntu Xenial | `9` (default)
Ubuntu Bionic | `8`
Ubuntu Bionic | `11` (default)
Ubuntu Focal | `8`
Ubuntu Focal | `11`
Ubuntu Focal | `13`
Ubuntu Focal | `14` (default)
Ubuntu Focal | `17` (default)
Ubuntu Jammy | `11`
Ubuntu Jammy | `17` (default)
CentOS 7 | `1.6.0`
CentOS 7 | `1.7.0`
CentOS 7 | `1.8.0`
CentOS 7 | `11` (default)
CentOS 8 | `1.8.0`
CentOS 8 | `11` (default)

Other OpenJDK implementations out of GNU/Linux distributions streams are not officially supported, but it's easy use this role too adding extra repositories (see vars/ in AdoptOpenJDK and Corretto directories).
Other OpenJDK implementations out of GNU/Linux distributions streams are not officially supported, but it's easy use this role too adding extra repositories (see vars/ in AdoptOpenJDK/Temurin and Corretto directories).

### Adding certificates into Java's truststore

Expand Down
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ galaxy_info:
platforms:
- name: Debian
versions:
- stretch
- buster
- bullseye
- bookworm
- name: Ubuntu
versions:
- bionic
Expand Down
15 changes: 0 additions & 15 deletions molecule/adoptopenjdk/Dockerfile.j2

This file was deleted.

12 changes: 12 additions & 0 deletions molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ FROM {{ item.image }}
RUN mkdir -p /usr/share/man/man1
RUN if [ $(command -v apt-get) ]; then sed -i -e 's/^APT/# APT/' -e 's/^DPkg/# DPkg/' /etc/apt/apt.conf.d/docker-clean; fi

{% if 'stretch' in item.image %}
RUN echo "deb http://archive.debian.org/debian/ stretch contrib main non-free" > /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch contrib main non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian/ stretch-backports main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch-backports main contrib non-free" >> /etc/apt/sources.list && \
apt-get update
{% endif %}

RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python36 sudo python3-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
Expand Down
27 changes: 27 additions & 0 deletions molecule/temurin/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Molecule managed

{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}

RUN mkdir -p /usr/share/man/man1

{% if 'stretch' in item.image %}
RUN echo "deb http://archive.debian.org/debian/ stretch contrib main non-free" > /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch contrib main non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian/ stretch-backports main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://archive.debian.org/debian/ stretch-backports main contrib non-free" >> /etc/apt/sources.list && \
apt-get update
{% endif %}

RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python36 sudo python3-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lint: |
ansible-lint .
platforms:
- name: openjdk-adopt-test
- name: temurin-test
groups:
- openjdk
image: ${DOCKER_IMAGE_BASE:-debian:buster-slim}
Expand All @@ -25,6 +25,6 @@ provisioner:
java_open_jdk_version_major: ${JDK_MAJOR}

scenario:
name: adoptopenjdk
name: temurin
verifier:
name: ansible
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
tasks:
- name: Set JDK Vendor
set_fact:
java_jdk_vendor: adoptopenjdk
java_jdk_vendor: temurin

- name: Gather OS specific variables
include_vars: "../../vars/{{ java_jdk_vendor }}/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
Expand Down
26 changes: 24 additions & 2 deletions tasks/install_openjdk.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Java | Migrate adoptopenjdk to temurin (if selected)
set_fact:
java_jdk_vendor: "temurin"
when: "java_jdk_vendor == 'adoptopenjdk'"

- name: Java | Gather OS specific variables
include_vars: "{{ item }}"
with_first_found:
Expand All @@ -18,6 +23,7 @@
java_required_repositories_openjdk: "{{ java_required_repositories_openjdk if java_required_repositories_openjdk is defined and java_required_repositories_openjdk is not sameas None and java_required_repositories_openjdk | length else __java_required_repositories_openjdk }}"
java_required_key_repositories_openjdk: "{{ java_required_key_repositories_openjdk if java_required_key_repositories_openjdk is defined and java_required_key_repositories_openjdk is not sameas None and java_required_key_repositories_openjdk | length else __java_required_key_repositories_openjdk }}"
java_required_libs_openjdk: "{{ java_required_libs_openjdk if java_required_libs_openjdk is defined and java_required_libs_openjdk is not sameas None and java_required_libs_openjdk | length else __java_required_libs_openjdk }}"
java_deprecated_repositories_adoptopenjdk: "{{ java_deprecated_repositories_adoptopenjdk if java_deprecated_repositories_adoptopenjdk is defined and java_deprecated_repositories_adoptopenjdk is not sameas None and java_deprecated_repositories_adoptopenjdk | length else __java_deprecated_repositories_adoptopenjdk }}"

- name: Java | Setting OS and architecture specific variables (II)
set_fact:
Expand All @@ -30,6 +36,12 @@

- name: Java | Debian pre-requisites
block:
- name: Java | Remove deprecated repositories
apt_repository:
repo: "{{ item }}"
state: absent
with_items: "{{ java_deprecated_repositories_adoptopenjdk }}"
when: java_deprecated_repositories_adoptopenjdk | length > 0
- name: Java | Install extra apt tools
package:
name: "{{ java_open_jdk_apt_extra_packages }}"
Expand Down Expand Up @@ -109,9 +121,19 @@
tags:
- skip_ansible_lint

- name: Correct java version selected /usr/lib/jvm/{{ java_open_jdk_home_dir }}/jre/bin/java"
- name: "Correct java version selected /usr/lib/jvm/{{ java_open_jdk_home_dir }}/jre/bin/java in java < 11"
alternatives:
name: java
path: "/usr/lib/jvm/{{ java_open_jdk_home_dir }}/jre/bin/java"
when: ansible_os_family == 'Debian'
when:
- ansible_os_family == 'Debian'
- java_open_jdk_version_major | int < 11


- name: "Correct java version selected /usr/lib/jvm/{{ java_open_jdk_home_dir }}/bin/java in java >= 11"
alternatives:
name: java
path: "/usr/lib/jvm/{{ java_open_jdk_home_dir }}/bin/java"
when:
- ansible_os_family == 'Debian'
- java_open_jdk_version_major | int >= 11
14 changes: 0 additions & 14 deletions vars/adoptopenjdk/CentOS-8.yml

This file was deleted.

1 change: 1 addition & 0 deletions vars/corretto/CentOS-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ __java_open_jdk_package: java-{{ java_open_jdk_version_major }}-amazon-corretto-

__java_open_jdk_home_dir: java-{{ java_open_jdk_version_major }}-amazon-corretto
__java_open_jdk_home: /usr/lib/jvm/{{ java_open_jdk_home_dir }}
__java_deprecated_repositories_adoptopenjdk: []
1 change: 1 addition & 0 deletions vars/corretto/Debian-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ __java_required_libs_openjdk: []
__java_open_jdk_package: java-{{ java_open_jdk_version_major }}-amazon-corretto-jdk

__java_open_jdk_home_dir: java-{{ java_open_jdk_version_major }}-amazon-corretto
__java_deprecated_repositories_adoptopenjdk: []
1 change: 1 addition & 0 deletions vars/corretto/Debian-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ __java_required_libs_openjdk: []
__java_open_jdk_package: java-{{ java_open_jdk_version_major }}-amazon-corretto-jdk

__java_open_jdk_home_dir: java-{{ java_open_jdk_version_major }}-amazon-corretto
__java_deprecated_repositories_adoptopenjdk: []
19 changes: 19 additions & 0 deletions vars/corretto/Debian-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
java_open_jdk_apt_extra_packages:
- python3-apt
- apt-transport-https
- gnupg2

__java_open_jdk_version_major: 1.8.0
__java_keystore_dir: jre/lib/security
# Supported versions: 8 (1.8.0L), 11

__java_required_repositories_openjdk:
- deb https://apt.corretto.aws stable main
__java_required_key_repositories_openjdk:
- https://apt.corretto.aws/corretto.key
__java_required_libs_openjdk: []
__java_open_jdk_package: java-{{ java_open_jdk_version_major }}-amazon-corretto-jdk

__java_open_jdk_home_dir: java-{{ java_open_jdk_version_major }}-amazon-corretto
__java_deprecated_repositories_adoptopenjdk: []
Loading

0 comments on commit dab7ad5

Please sign in to comment.