2009/5/11 James Turnbull <ja...@lovedthanlost.net>:
>
> Would obviously be enormously improved with some querying methods and a 
> support map
> for facts.  Only had 5 minutes to do this example.

The problem in this case is that some distros may not have lsb_release
(OVS doesn't have the package based on discussion with Avi).

I'd argue that we probably want a richer model so we could have say eg
(straw man off top of head):

class Distribution
   def release
      ...

   def lsb?
     return true

class OEL << Distribution

    def release
       parse stuff

    def to_s
        "OEL"

    def lsb?
        return false

Then we could maybe pass a constraint as a block to the confine or
confine or build up a constant for LSB_DISTRIBUTIONS or whatever.

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to