No, that looks like it should work to me. Specifically, by testing
with 2.6.4 shows that it actually works correctly when I run that some
code; puppet loads the fact and I see my debug output showing that it
was found.
Can you post the versions and put the code up to download? If you do
we can try out the system and see if it will reproduce for us locally.
(Knowing exactly what version of puppet you have will also help,
because it will let me test the same code you use rather than just
whatever I have on my system.)
Regards,
Daniel
--
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <dan...@rimspace.net>
✆ Contact me via gtalk, email, or phone: +1 (503) 893-2285
♲ Made with 100 percent post-consumer electrons
> Thanks for the assistance. I dropped a tarball over at
> https://bitbucket.org/windowsrefund/temp/src/31bfb4826c7f/ub2.tar.gz
> after extracting, I'd be able to reproduce the problem with:
[...]
> As for versions, here's what I'm doing:
>
> puppet 0.25.4 (gem)
> facter 1.5.8 (gem)
> ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
> some sort of debianish GNU/Linux OS
>
> Thanks again and let me know if further details are needed.
No, that covers it, actually. Your problem is that the 0.25.4 series
consult only '.../ub2/plugins/facter/*.rb' for custom facts; the
'.../ub2/lib/facter/*.rb' version didn't come in until later. (The
2.6 AKA 0.26 series, IIRC, but I have not checked exactly when.)
For backward compatibility the newer clients will fetch from
plugins/facter as well as lib/facter, so the compatible option is to
drop it in there.
Were you working from some documentation on modules on our site? If
so I would love to know where, because then I can tell our tech writer
to fix it up so that it makes absolutely clear which versions the
various paths work in. :)
> Thanks for the feedback. The doc I referred to lives at
> http://docs.puppetlabs.com/guides/plugins_in_modules.html
Thanks. I will bug our tech writer in a moment. :)
> I'll certainly try a mv lib plugins to see if it works as expected but
> I'm a little confused when I consider my existing source tree which
> does use the lib directory. Of course, this is client/server stuff
> where the scenario being discussed here is purely local.
I only looked at the client-side behaviour, not the master. With the
master it depends where that system scans through for pluginsync – it
then sends 'em all to a single directory on the client that is on the
search path in addition to the module directories.
Is your puppet master also an 0.25 series install, or are you using a
2.6 master and 0.25 clients?
That's definitely a bug. We moved to supporting lib/ in 0.25.x, we
just must have missed making this work on the client side.
>
> Thanks again :)
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>
We're not going to do another 0.25.x release, so we should mention it
in the docs.