Hi,

Please take a look and tell what is wrong on that picture ;-).

In the system I have:
# /bin/rpm -qa --queryformat "i | repos | %{name} | %{version}-%{release} | 
%{arch}\n" | grep " torque "
i | repos | torque | 2.3.0-snap.200801151629.2cri.sl5 | x86_64

I want to install version 2.4.3-sl5, and it's not possible, cause cfengine
says it's already installed.

--------------------------------------
bundle agent packages
{
        packages:
                "torque"
                        package_policy => "add",
                        package_method => yum,
                        package_architectures => { "x86_64" },
                        package_select => "==",
                        package_version => "2.4.3-sl5";
}
body package_method yum
{
any::
   package_changes => "individual";
   package_list_command => "/bin/rpm -qa --queryformat \"i | repos | %{name} | 
%{version}-%{release} | %{arch}\n\"";

   package_list_name_regex    => "[^|]+\|[^|]+\|\s+([^\s|]+).*";
   package_list_version_regex => "[^|]+\|[^|]+\|[^|]+\|\s+([^\s|]+).*";
   package_list_arch_regex    => "[^|]+\|[^|]+\|[^|]+\|[^|]+\|\s+([^\s]+).*";
   package_installed_regex => "i.*";
   package_name_convention => "$(name)-$(version).$(arch)";

   package_add_command => "/usr/bin/yum -y install ";
   package_delete_command => "/bin/rpm -e --nodeps";
}
--------------------------------------

And I get:
--------------------------------------
cf3     .........................................................
cf3     Promise handle:
cf3     Promise made by: torque
cf3     .........................................................
cf3
cf3  ???????????????????????????????????????????????????????????????
cf3    Reading package list from /bin/rpm
cf3  ???????????????????????????????????????????????????????????????
cf3 # Software reporting feature is only available in version Nova and above
cf3 # Patch reporting feature is only available in version Nova and above
cf3  ???????????????????????????????????????????????????????????????
cf3   Done checking packages and patches
cf3  ???????????????????????????????????????????????????????????????
cf3  -> Package version specified explicitly in promise body
cf3  ... trying listed arch x86_64
cf3  -> Looking for (torque,*,*)
cf3  -> Matched name torque
cf3  -> Matched version *
cf3  -> Looking for (torque,2.4.3-sl5,x86_64)
cf3  -> Matched name torque
cf3  -> Matched arch x86_64
cf3  -> Check for compatible versioning model in (2.4.3-sl5,2.3.0-
snap.200801151629.2cri.sl5)
cf3  -> Verified that versioning models are compatible
cf3  -> Verified version constraint promise kept
cf3  -> 1 package(s) matching the name "torque" already installed
cf3  -> 1 package(s) match the promise body's criteria fully
cf3  -> Package promises to refer to itself as "torque-2.4.3-sl5.x86_64" to 
the manager
cf3  -> Package version seems to match criteria
cf3  -> Package already installed, so we never add it again
--------------------------------------


Regards,
Patryk
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to