Issue #12179 has been updated by Steve Shipway.
I see this being useful in cases where (eg) there is a known vulnerability is a certain version of a package, and you want to ensure that all systems are running a non-vulnerable version - but you dont want to force a downgrade on later system, or force an upgrade on a system that doesnt require it (since upgrading can cause potential problems elsewhere when you have many systems running different packages). Also, different OSs have different ways to specify subversions -- you could say '>1.2' to get '1.2.1-el5' on Linux and '1.2.0-27' on SunOS. Finaly, this would not in any way prevent people from using ensure=>'1.2.1' if they wanted to. It would simply extend the functionality. I know you can do this by creating a dummy RPM in Linux with the appropriate requirements that installs nothing, and then using ensure to get it installed at the correct version, but it would be simpler to not need to use this awkward construction. ---------------------------------------- Feature #12179: Package resource should allow ensure=>">1.0" or ensure=>"<0.10" as well as 'latest', 'installed' and specific version number https://projects.puppetlabs.com/issues/12179 Author: Steve Shipway Status: Needs Decision Priority: Normal Assignee: Randall Hansen Category: language Target version: Affected Puppet version: 2.7.9 Keywords: Branch: It would be helpful if the 'ensure' parameter to the Package resrouce could also specify 'at least version **x**' and 'no later than version **y**' as well as 'latest version', 'installed' (IE, any version) or a specific version number. EG: package { 'foo': ensure=>'>1.0' } would act as 'latest' if the current package was uninstalled or version before 1.0, but would act as 'installed' otherwise. Similarly, package { 'foo': ensure=>'<4.0' } would act as 'installed' if version is <4.0 but would produce an error otherwise. This would allow us to set a manifest to avoid packages with known problems in a certain version, but not upgrade unless necessary. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
