Forum: Cfengine Help Subject: Re: Advice on using package promises Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,22672,22682#msg-22682
Mark, The 'update' pass doesn't seem to find packages older than the version I've requested, so the package_update_command doesn't fire: Packages promise: "wireshark-1.0.15" package_policy => "addupdate", package_method => yum_rpm_exact, package_select => "==", action => actionsettings_fix_inform("inform"); # yum list installed | grep wireshark wireshark.x86_64 1.0.11-1.el5_5.5 installed # cf-agent --version | grep Core @ @@@ @ CFEngine Core 3.2.0a1.r2498 # cf-agent -vK cf3> -> Package (wireshark,1.0.11,x86_64) found cf3> # Patch reporting feature is only available in version Nova and above cf3> ??????????????????????????????????????????????????????????????? cf3> Done checking packages and patches cf3> ??????????????????????????????????????????????????????????????? cf3> -> Package version specified implicitly in promiser's name cf3> -> Looking for (wireshark,*,*) cf3> -> Matched name wireshark cf3> -> Matched version * cf3> -> Looking for (wireshark,1.0.15,*) cf3> -> Matched name wireshark cf3> -> Check for compatible versioning model in (1.0.15,1.0.11) cf3> -> Verified that versioning models are compatible cf3> -> Versions did not match cf3> No installed packages matched (wireshark,1.0.15,*) cf3> Checking if package (wireshark,1.0.15,*) is at the desired state (installed=1,matched=0) cf3> -> Package promises to refer to itself as "wireshark-1.0.15" to the manager cf3> -> Package version seems to match criteria cf3> Checking if latest available version is newer than installed... cf3> Looking for an installed package older than (wireshark,1.0.15,*) cf3> !! Package (wireshark,*) is not installed cf3> Installed package is up to date, not updating _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine