Forum: CFEngine Help
Subject: generate reports for adding packages with cf3
Author: sakis
Link to topic: https://cfengine.com/forum/read.php?3,23044,23044#msg-23044
Hello to all
I am a newbie on cfengine3 and I am trying to solve the below problem:
I want to create reports for the packages that installed on a centos 5 machine
(cfengine 3.1.5 , x86_64 , compiled from sources) .
Please could you see below my configuration (I have included the standard
cfengine lib for the if_repaired ):
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("missing_packages_added");
reports:
missing_packages_added::
"package \"$(match_package)\" has been
installed";
The packages are installed without any problem but the reports part does not
work.
Please could you enlighten me how can I make the reports part work?
Thank you
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine