On Tue, Mar 24, 2009 at 2:40 PM, Luke Kanies <[email protected]> wrote:

>
> On Mar 20, 2009, at 5:33 PM, Lance Dillon wrote:
>
> >
> > Is this where I would submit a patch for facter?  I had a situation
> > where I wanted lsbdistrelease, but it isn't available by itself.  It
> > only comes as part of lsb.rb.  So you can do:
> >
> > facter|grep lsbdistrelease
> >
> > but not
> >
> > facter lsbdistrelease
> >
> > because it doesn't load the lsb.rb module, it is looking for an
> > lsbdistrelease module, that doesn't exist.
> >
> > I just created a lsbdistrelease.rb that basically contained nothing
> > more
> > than:
> >
> > require 'facter/lsb'
> >
> > Also, lsbmajdistrelease was the same thing.
> >
> > I can send in a patch.
> >
> > I have found these values helpful in some of my puppet recipes.
>
> This is one place you can send in that patch, yeah.
>
> Out of curiosity, why do your recipes care whether the individual
> facts are retrievable by themselves?  Puppet pulls all facts at once,
> so I can't imagine why the individual parts matter.
>
>
Actually, I've got some recipes that reference $lsbmajdistrelease, and it
never pulled up any values, so my recipes failed in ways I didn't expect.
Until I put in those little facter files, then they worked.

If there is a way to pull up the individual facts by themselves, I would
love to do so.

I was using 0.24.5 at the time, and I'm now at 0.24.7.  Maybe there was a
patch between then and now that fixed this?

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