mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
Merged in al2022 (pull request #187)
Add support for Amazon Linux 2022 * first pass at basic AL2022 support * unpin git version on AL2022 * resolve a few package issues/discrepancies * fix non-Amazon distro support * fix missing nfs.service symlink on AL2022 * remove Ubuntu/Debian install task from aws_common (no existing ubuntu dependency tasks) * add amazonlinux:2022 to list of images for testing via molecule * install amazon-cloudwatch-agent from package sources instead of direct RPM on AL2022; add workaround for missing group * fix typo in task name * add mising amazonlinux:2022 test for product_install role * al2022 -> al2023 * al2023 ships with rpm-installed versions of setuptools and distlib that aren't removable and older than what pipenv requires; use py3.11 instead Approved-by: Vadym Kovalskiy Approved-by: Eugene Ivantsov Approved-by: Yurii Kuzan
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux
|
||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2
|
||||
block:
|
||||
|
||||
- name: Add Adoptium yum repository
|
||||
@@ -31,7 +31,7 @@
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
- name: Install other base packages on Amazon Linux
|
||||
- name: Install other base packages on Amazon Linux 2
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- dejavu-fonts-common # Required by the installer
|
||||
37
roles/product_common/tasks/amazon-2023.yml
Normal file
37
roles/product_common/tasks/amazon-2023.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
|
||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2023
|
||||
block:
|
||||
|
||||
# There is no amazonlinux/2023 package available from the Adoptium repo; AL2023 docs point to upstream compatiblity
|
||||
# with Fedora 34, 35, and 36, so we use the latest of those for the Temurin package for now
|
||||
- name: Add Adoptium yum repository
|
||||
ansible.builtin.yum_repository:
|
||||
name: Adoptium
|
||||
file: adoptium
|
||||
description: Adoptium Repo
|
||||
baseurl: "https://packages.adoptium.net/artifactory/rpm/fedora/36/{{ ansible_architecture }}"
|
||||
gpgkey: https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||
gpgcheck: yes
|
||||
state: present
|
||||
|
||||
- name: Install Eclipse Temurin JDK
|
||||
ansible.builtin.yum:
|
||||
name: "temurin-{{ java_major_version }}-jdk"
|
||||
state: present
|
||||
|
||||
- name: Ensure common JDK symlink exists
|
||||
community.general.alternatives:
|
||||
link: "/usr/lib/jvm/java"
|
||||
name: "java_sdk"
|
||||
path: "/usr/lib/jvm/temurin-{{ java_major_version }}-jdk"
|
||||
priority: 99
|
||||
|
||||
when: atl_use_system_jdk | bool
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
- name: Install other base packages on Amazon Linux 2023
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- dejavu-fonts-all # Required by the installer
|
||||
@@ -1,4 +1,9 @@
|
||||
---
|
||||
|
||||
- name: Perform distro-specific tasks
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
- name: Perform Amazon-Linux-specific tasks
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}.yml"
|
||||
when: ansible_distribution | lower == 'amazon'
|
||||
|
||||
- name: Perform Ubuntu/Debian-specific tasks
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution | lower }}.yml"
|
||||
when: ansible_distribution | lower != 'amazon'
|
||||
|
||||
Reference in New Issue
Block a user