On Thursday, December 18, 2014 11:10:52 AM UTC-6, Joseph Lombardo wrote: > > We have a use case where when a new server comes up, it needs to install a > particular version of a package. However, if this package is upgraded > puppet should ignore it. I have been unable to find a non-hacky way to do > this. Basically, need to ensure present but install a particular version > (not the latest in the repo) if missing. Any help will be great. > >
Your requirements are a bit inconsistent. If it's ok for machines to *have* a more recent version of the package in question, then why would it wrong for Puppet to install such a package? In any case, there is no mechanism in Puppet proper by which your requirement can be expressed. You could perhaps build something with custom facts, conditionals, etc., but I'd suggest you consider a custom requirements-only package, and have Puppet ensure *that* present. This could certainly be done with Yum/RPM, and I pretty sure with Apt/DEB, because they support richer expressions of dependencies on other packages. If your package is of a different type then you'll need to evaluate whether this would be a viable solution for you. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c66e1ff1-6b03-4c44-ac4c-2f5aeaa28e34%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
