Skip to content

Commit

Permalink
aii-ks EL9 variant: add required packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jouvin committed Nov 12, 2024
1 parent 6d54280 commit 7de0384
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
21 changes: 15 additions & 6 deletions aii-ks/src/main/pan/quattor/aii/ks/config.pan
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ variable AII_ACK_PROTOCOL ?= AII_OSINSTALL_PROTOCOL;
#
variable AII_OSINSTALL_ROOT ?= undef;
variable AII_OSINSTALL_OS_VERSION ?= undef;
variable DEBUG = debug(format('%s: AII_OSINSTALL_ROOT=%s, AII_OSINSTALL_OS_VERSION=%s',
OBJECT,
AII_OSINSTALL_ROOT,
AII_OSINSTALL_OS_VERSION));
variable DEBUG = debug(
'%s: AII_OSINSTALL_ROOT=%s, AII_OSINSTALL_OS_VERSION=%s',
OBJECT,
AII_OSINSTALL_ROOT,
AII_OSINSTALL_OS_VERSION
));

# AII_OSINSTALL_SUBURL allows to specify a sub-url under root/version
# (e.g. /base)
Expand Down Expand Up @@ -356,6 +358,11 @@ variable AII_OSINSTALL_OPTION_FIREWALL ?= null;
# default list of packages required for the initial installation
#

variable AII_OSINSTALL_VERSIONLOCK_PLUGIN = if ( OS_VERSION_PARAMS['majorversion'] >= '8' ) {
"python3-dnf-plugin-versionlock";
} else {
"yum-plugin-versionlock";
};
variable AII_OSINSTALL_PACKAGES ?= list(
"curl",
"lsof",
Expand All @@ -373,13 +380,15 @@ variable AII_OSINSTALL_PACKAGES ?= list(
"perl-URI",
"perl-XML-Parser",
"yum-plugin-priorities",
"yum-plugin-versionlock",
AII_OSINSTALL_VERSIONLOCK_PLUGIN,
"wget",
);


"packages" ?= AII_OSINSTALL_PACKAGES;
"packages" = {
foreach (i; pkg_name; AII_OSINSTALL_PACKAGES) {
append(pkg_name);
};
if (value('/system/aii/osinstall/ks/selinux') == 'disabled') {
# grubby is used to disable selinux on with kernel parameter
append('grubby');
Expand Down
7 changes: 7 additions & 0 deletions aii-ks/src/main/pan/quattor/aii/ks/variants/el9.pan
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ prefix "/system/aii/osinstall/ks";
"langsupport" = null;
"packages_args" = list("--ignoremissing");

# Required by perl-CDB_File
"packages" = append("perl-English");
# Required by some Quattor components and must be installed before
# /etc/init.d is created by something else (e.g. a Quattor package)
"packages" = append("chkconfig");
"packages" = append("initscripts");

"part_label" = true;
"volgroup_required" = false;
"lvmforce" = true;
Expand Down

0 comments on commit 7de0384

Please sign in to comment.