From ff823a93e182b697644ebe379c418b6059657021 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 27 Oct 2022 14:20:36 -0700 Subject: [PATCH] distro: Separate out RHEL9 SAP package set into its own function This also moves cloud specific client packages into that cloud's PackageSet so that the SAP packages are common to all users. --- internal/distro/rhel9/package_sets.go | 42 +++------------------------ internal/distro/rhel9/sap.go | 41 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 38 deletions(-) diff --git a/internal/distro/rhel9/package_sets.go b/internal/distro/rhel9/package_sets.go index d133bcf73..1b069fbe2 100644 --- a/internal/distro/rhel9/package_sets.go +++ b/internal/distro/rhel9/package_sets.go @@ -629,48 +629,14 @@ func rhelEc2HaPackageSet(t *imageType) rpmmd.PackageSet { } // rhel-sap-ec2 image package set +// Includes the common ec2 package set, the common SAP packages, and +// the amazon rhui sap package func rhelEc2SapPackageSet(t *imageType) rpmmd.PackageSet { - ec2SapPackageSet := rhelEc2CommonPackageSet(t) - ec2SapPackageSet = ec2SapPackageSet.Append(rpmmd.PackageSet{ + return rpmmd.PackageSet{ Include: []string{ - // RHBZ#2076763 - "@Server", - // SAP System Roles - // https://access.redhat.com/sites/default/files/attachments/rhel_system_roles_for_sap_1.pdf - "ansible-core", - "rhel-system-roles-sap", - // RHBZ#1959813 - "bind-utils", - "nfs-utils", - "tcsh", - // RHBZ#1959955 - "uuidd", - // RHBZ#1959923 - "cairo", - "expect", - "graphviz", - "gtk2", - "iptraf-ng", - "krb5-workstation", - "libaio", - "libatomic", - "libcanberra-gtk2", - "libicu", - "libtool-ltdl", - "lm_sensors", - "net-tools", - "numactl", - "PackageKit-gtk3-module", - "xorg-x11-xauth", - // RHBZ#1960617 - "tuned-profiles-sap-hana", - // RHBZ#1961168 - "libnsl", - // RHUI client "rh-amazon-rhui-client-sap-bundle-e4s", }, - }) - return ec2SapPackageSet + }.Append(rhelEc2CommonPackageSet(t)).Append(SapPackageSet(t)) } // common GCE image diff --git a/internal/distro/rhel9/sap.go b/internal/distro/rhel9/sap.go index 166a59a96..67758b1d6 100644 --- a/internal/distro/rhel9/sap.go +++ b/internal/distro/rhel9/sap.go @@ -3,6 +3,7 @@ package rhel9 import ( "github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/osbuild" + "github.com/osbuild/osbuild-composer/internal/rpmmd" ) // SapImageConfig returns the SAP specific ImageConfig data @@ -116,3 +117,43 @@ func SapImageConfig(rd distribution) *distro.ImageConfig { }, } } + +func SapPackageSet(t *imageType) rpmmd.PackageSet { + return rpmmd.PackageSet{ + Include: []string{ + // RHBZ#2076763 + "@Server", + // SAP System Roles + // https://access.redhat.com/sites/default/files/attachments/rhel_system_roles_for_sap_1.pdf + "ansible-core", + "rhel-system-roles-sap", + // RHBZ#1959813 + "bind-utils", + "nfs-utils", + "tcsh", + // RHBZ#1959955 + "uuidd", + // RHBZ#1959923 + "cairo", + "expect", + "graphviz", + "gtk2", + "iptraf-ng", + "krb5-workstation", + "libaio", + "libatomic", + "libcanberra-gtk2", + "libicu", + "libtool-ltdl", + "lm_sensors", + "net-tools", + "numactl", + "PackageKit-gtk3-module", + "xorg-x11-xauth", + // RHBZ#1960617 + "tuned-profiles-sap-hana", + // RHBZ#1961168 + "libnsl", + }, + } +}