mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
ITPLT-4019 Backwards compatible change to allow testing of Corretto JDK on AZL2023
This commit is contained in:
@@ -5,6 +5,7 @@ postgres_version: "9.6"
|
|||||||
# Disable these when using the product installer, otherwise we end up
|
# Disable these when using the product installer, otherwise we end up
|
||||||
# fighting with it.
|
# fighting with it.
|
||||||
atl_use_system_jdk: false
|
atl_use_system_jdk: false
|
||||||
|
atl_use_system_jdk_flavor: "temurin" # amazon linux 2023 also supports "corretto"
|
||||||
|
|
||||||
# Ubuntu and Ansible use different architecture nomenclature; provide
|
# Ubuntu and Ansible use different architecture nomenclature; provide
|
||||||
# an easy method for translating between them
|
# an easy method for translating between them
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
# Temurin JDK installation
|
||||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2023
|
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2023
|
||||||
block:
|
block:
|
||||||
|
|
||||||
@@ -124,10 +124,32 @@
|
|||||||
path: "/usr/lib/jvm/temurin-{{ java_major_version }}-jdk"
|
path: "/usr/lib/jvm/temurin-{{ java_major_version }}-jdk"
|
||||||
priority: 99
|
priority: 99
|
||||||
|
|
||||||
when: atl_use_system_jdk | bool
|
when:
|
||||||
|
- atl_use_system_jdk | bool
|
||||||
|
- atl_use_system_jdk_flavor == "temurin"
|
||||||
tags:
|
tags:
|
||||||
- runtime_pkg
|
- runtime_pkg
|
||||||
|
|
||||||
|
# Corretto JDK installation
|
||||||
|
- name: Install Corretto JDK if necessary on Amazon Linux 2023
|
||||||
|
block:
|
||||||
|
- name: Install Corretto JDK Headless
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: "java-{{ java_major_version }}-amazon-corretto-headless"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- runtime_pkg
|
||||||
|
|
||||||
|
- name: Ensure common JDK symlink exists
|
||||||
|
community.general.alternatives:
|
||||||
|
link: "/usr/lib/jvm/java"
|
||||||
|
name: "java_sdk"
|
||||||
|
path: "/usr/lib/jvm/java-{{ java_major_version }}-amazon-corretto"
|
||||||
|
priority: 99
|
||||||
|
when:
|
||||||
|
- atl_use_system_jdk | bool
|
||||||
|
- atl_use_system_jdk_flavor == "corretto"
|
||||||
|
|
||||||
- name: Install other base packages on Amazon Linux 2023
|
- name: Install other base packages on Amazon Linux 2023
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name:
|
name:
|
||||||
|
|||||||
Reference in New Issue
Block a user