From 2bdcf7a989d82637782b161610711a3a41a3fe69 Mon Sep 17 00:00:00 2001 From: Rishi Hegde Date: Tue, 13 Feb 2024 17:55:07 +0530 Subject: [PATCH] RE-16102: add platform support for redhatfips-9 RE-16102: add platform support for redhatfips-9 --- CHANGELOG.md | 1 + .../platform/defaults/redhatfips-9-x86_64.rb | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 lib/vanagon/platform/defaults/redhatfips-9-x86_64.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index b3e2a119..596d1405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] ### Added - (VANAGON-228) Add Fedora-38 (Intel) platform definition to vanagon +- (RE-16102) Add Redhat-9 FIPS platform definition to vanagon ## [0.44.0] - 2023-11-30 ### Added diff --git a/lib/vanagon/platform/defaults/redhatfips-9-x86_64.rb b/lib/vanagon/platform/defaults/redhatfips-9-x86_64.rb new file mode 100644 index 00000000..044e7051 --- /dev/null +++ b/lib/vanagon/platform/defaults/redhatfips-9-x86_64.rb @@ -0,0 +1,30 @@ +platform "redhatfips-9-x86_64" do |plat| + plat.servicedir "/usr/lib/systemd/system" + plat.defaultdir "/etc/sysconfig" + plat.servicetype "systemd" + + packages = %w( + autoconf + automake + cmake + gcc-c++ + java-1.8.0-openjdk-devel + libarchive + libsepol-devel + libselinux-devel + openssl-devel + pkgconfig + readline-devel + rpmdevtools + rpm-build + rsync + swig + systemtap-sdt-devel + yum-utils + zlib-devel + ) + + plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}" + plat.install_build_dependencies_with "dnf install -y --allowerasing " + plat.vmpooler_template "redhat-fips-9-x86_64" +end