According to the reference manual entry for package_architectures;

"It is possible to specify a list of packages of different architectures if it 
is desirable to install multiple architectures on the host"

I have the following, which in practice looks for only the final architecture 
in the list, eg, "noarch"  ( If I remove "noarch," it'll only find i686, etc. )

packages:

    redhat::

        "$(packages)"
            package_method          =>  yum,
            package_architectures   =>  { "x86_64", "i686", "noarch" },
            package_policy          =>  "add";


It looks like cfengine is parsing the installed list and finding the applicable 
packages, but is only determining whatever the last match is to be the promiser 
(see below.) What's the trick to getting both x86_64 and i686 packages 
installed where both are available?


cf3     .........................................................
cf3     Promise handle: yum
cf3     Promise made by: xorg-x11-fonts-ISO8859-14-75dpi
cf3     .........................................................
cf3 
cf3  ?? Already have a package list for this manager
cf3  -> Package version was not specified

cf3  ... trying listed arch x86_64
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  !! Unsatisfied constraints in promise (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,x86_64)
cf3  !! Unsatisfied constraints in promise 
(xorg-x11-fonts-ISO8859-14-75dpi,*,x86_64)

cf3  ... trying listed arch i686
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  !! Unsatisfied constraints in promise (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,i686)
cf3  !! Unsatisfied constraints in promise 
(xorg-x11-fonts-ISO8859-14-75dpi,*,i686)

cf3  ... trying listed arch noarch
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  !! Unsatisfied constraints in promise (xorg-x11-fonts-ISO8859-14-75dpi,*,*)
cf3  -> Looking for (xorg-x11-fonts-ISO8859-14-75dpi,*,noarch)
cf3  !! Unsatisfied constraints in promise 
(xorg-x11-fonts-ISO8859-14-75dpi,*,noarch)

cf3  -> 0 package(s) matching the name "xorg-x11-fonts-ISO8859-14-75dpi" 
already installed
cf3  -> 0 package(s) match the promise body's criteria fully
cf3  -> Package promises to refer to itself as 
"xorg-x11-fonts-ISO8859-14-75dpi.noarch" to the manager
cf3  -> Package version seems to match criteria
cf3  -> Schedule package for addition

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

Reply via email to