Forum: CFEngine Help
Subject: Re: generate reports for adding packages with cf3
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,23044,23049#msg-23049
If any package is installed the repair class is set. Then reports iterates
through the whole list because the repaired class is set. Try this instead.
# Syntax not verified.
vars:
centos_5::
"match_package" slist => { "nss_ldap","mc","tcpdump","sudo","nc","rsync" };
packages:
centos_5::
"$(match_package)"
package_select => ">=",
package_policy => "add",
package_method => yum_rpm,
classes => if_repaired("$(match_package)_repaired");
reports:
cfengine_3::
"package \"$(match_package)\" has been installed",
ifvarclass => "$(match_package)_repaired";
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine