I dont understand why CFEngine is detecting this package as up to date.

I am trying to update to openssh 5.9p1 with an rpm from a directory. 
verbose output finds the installed version of openssh and says the 
package is up to date. Can you see what I am missing / not understanding?

Gist: https://gist.github.com/3744812


policy snippet
vars:
   "packages" slist => {"openssh", "openssh-clients", "openssh-server"};
   "version" string => "5.9p1-1";

packages:
   "$(packages)"
     package_policy => "update",
     package_method => rpm_version("/tmp/mydirwithrpms"),
     package_version => "$(version)",
     package_architectures => { "x86_64" };

rpms in dir
openssh-5.9p1-1.src.rpm
openssh-5.9p1-1.x86_64.rpm
openssh-clients-5.9p1-1.x86_64.rpm
openssh-debuginfo-5.9p1-1.x86_64.rpm
openssh-server-5.9p1-1.x86_64.rpm

verbose output snippet
cf3> -> Looking for (openssh,5.9p1-1,x86_64)
cf3> -> Matched name openssh
cf3> -> Matched arch x86_64
cf3> -> Check for compatible versioning model in (5.9p1-1,4.3p2-82.el5)
cf3> -> Verified that versioning models are compatible
cf3> -> Versions did not match
cf3> No installed packages matched (openssh,5.9p1-1,x86_64)
cf3> Checking if package (openssh,5.9p1-1,x86_64) is at the desired 
state (installed=1,matched=0)
cf3> -> Package promises to refer to itself as 
"openssh-5.9p1-1.x86_64.rpm" 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 (openssh,5.9p1-1,x86_64)
cf3> Found installed package (openssh,4.3p2-82.el5,x86_64)
cf3> Installed package is up to date, not updating
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to