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