Issue #8975 has been updated by James Turnbull.

Category set to package


----------------------------------------
Feature #8975: Create comparator parameter to package provider(s)
https://projects.puppetlabs.com/issues/8975

Author: Lance Albertson
Status: Needs Decision
Priority: Normal
Assignee: Cody Herriges
Category: package
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Currently the package provide assumes you want an exact version of a package 
when you pass it to puppet. However in some cases it would be great to have 
more flexibility in that you can do things such as "upgrade if version >=2.0".

I propose we add a comparator parameter called "cmp" which has the following 
attributes:

* `=` version installed must be equal to version
* `<` version installed must be less than version
* `>` version installed must be greater than version
* `<=` version installed must be less than or equal to version
* `>=` version installed must be creater than or equal to version

Code example:
<pre>
package { apache:
       ensure => "2.2.17",
       cmp    => ">=",
}
</pre>

This would allow me to push package upgrades based on versions on critical 
packages instead of using "latest" and having puppet do it whenever the new 
package appears. The default behavior when its unset is to use `=`.





-- 
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.

Reply via email to