On May 3, 2010, at 11:10 PM, JRendell wrote: > Answering one of my own questions: > >> >> Question: will puppet handle downgrades? ie use 'rpm -f' to force the >> installation? >> Or will it only work for upgrades? >> > > From looking at puppet/provider/package/rpm.rb: > Specifying 'latest' for the rpm provider will cause the puppet client > to do an rpm -qf on the rpm specified in the source parameter. > And downgrades are handled, I think... > it looks like it does rpm -i UNLESS the package is listed as installed > (and not absent), in which case it uses rpm -U. > In both cases it adds '--oldpackage', which is a synonym for force. > > So it will handle adding, upgrading, and downgrading a package. > > Still appreciate any comments re how to best chain subscribe/notify, > and also if I'm wildly wrong about using the RPM provider in > preference to the YUM provider for our use case.
I always use apt, but it looks like creating a yum repository is pretty easy. http://www.phy.duke.edu/~rgb/General/yum_article/yum_article/node14.html Why would you need to set up more than one repository? Testing and production, or do you have different computers that need different versions? If it's just testing and production, setting up two repositories is probably easier. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.