On Jan 19, 2011, at 10:47 PM, donavan wrote:

> On Jan 19, 7:55 pm, Daniel Pittman <[email protected]> wrote:
>> Sorry; I figured any information like that would be included in the
>> post.  Aside from that question this patch is definitely +1 from me,
>> and I would prefer to see a version check and this behaviour as soon
>> as possible.
> 
> On a related note, is there any standard method for setting provider
> behavior based on system features? In particular I'm thinking about
> interrogating system resources such as binary or package versions.
> I wrote a cups provider, but the lp* tools had major changes around
> version 1.2. I haven't gone back to finish it, but only thought of 2
> providers with a custom fact and "confine :cupsversion => ['1.2',
> '1.3', '1.4']".

The only method we have right now is facts, which you can use in the 'confine' 
lines but not much else.

-- 
The optimist proclaims that we live in the best of all possible worlds,
and the pessimist fears that this is true.
                -- James Branch Cabell 1879-1958
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to