From 2fe6aaacee7764b5e9fc26822e8aea59f976353a Mon Sep 17 00:00:00 2001 From: skyamgarp <130442619+skyamgarp@users.noreply.github.com> Date: Mon, 1 Apr 2024 13:54:21 +0530 Subject: [PATCH] (PA-5323) Add RedHat 9 (Power9) platform definition to vanagon (PA-5323) Added changelog --- CHANGELOG.md | 2 ++ lib/vanagon/platform/defaults/el-9-ppc64le.rb | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 lib/vanagon/platform/defaults/el-9-ppc64le.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index b660e98a..25089ad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org). This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] +### Added +- (PA-5323) Add RedHat 9 (Power9) platform definition to vanagon ## [0.46.0] - 2024-03-18 ### Changed diff --git a/lib/vanagon/platform/defaults/el-9-ppc64le.rb b/lib/vanagon/platform/defaults/el-9-ppc64le.rb new file mode 100644 index 00000000..ff3b2d90 --- /dev/null +++ b/lib/vanagon/platform/defaults/el-9-ppc64le.rb @@ -0,0 +1,29 @@ +platform 'el-9-ppc64le' do |plat| + plat.servicedir '/usr/lib/systemd/system' + plat.defaultdir '/etc/sysconfig' + plat.servicetype 'systemd' + + # Workaround for an issue with RedHat subscription metadata, see ITSYS-2543 + plat.provision_with('subscription-manager repos --disable rhel-9-for-ppc64le-baseos-rpms && subscription-manager repos --enable rhel-9-for-ppc64le-baseos-rpms --enable codeready-builder-for-rhel-9-ppc64le-rpms') + + packages = %w( + autoconf + automake + cmake + gcc-c++ + java-1.8.0-openjdk-devel + libarchive + libselinux-devel + make + patch + perl-Getopt-Long + readline-devel + swig + systemtap-sdt-devel + zlib-devel + ) + + plat.provision_with("dnf install -y --allowerasing #{packages.join(' ')}") + plat.install_build_dependencies_with 'dnf install -y --allowerasing' + plat.vmpooler_template 'redhat-9-power9' +end