Fix for CentOS 8 -> 9

This commit is contained in:
Tobias Herre 2023-10-28 14:01:57 +02:00
parent 578ba9e6de
commit 1733552f7e
1 changed files with 10 additions and 1 deletions

11
lib.cf
View File

@ -243,15 +243,24 @@ methods:
} }
bundle agent install_system_repos bundle agent install_system_repos
{ {
classes:
centos::
"centos_9_and_later" expression => isgreaterthan("$(sys.os_version_major)", "8") ;
vars: vars:
"pkgs" slist => {}; "pkgs" slist => {};
centos:: centos::
"pkgs" slist => { "pkgs" slist => {
"epel-release" "epel-release"
}; };
commands:
centos_9_and_later::
"/usr/bin/dnf"
inform => "false",
args => "config-manager --set-enabled crb";
methods: methods:
"any" usebundle => wmde_install_packages(@(pkgs),"system_repos"); "any" usebundle => wmde_install_packages(@(pkgs),"system_repos");
reports:
} }