On 01/09/2015 03:48 PM, Davide Ferrari wrote:
> Hi
>
> I'm trying to override a fact from facter 2.3, called "partitions"
> with a custom version of this fact, via pluginsync.
>
> The problem is that the base file in
> /var/lib/puppet/lib/facter/partitions.rb, just like it's facter
> brother in /usr/lib/ruby/vendor_ruby/facter/partitions.rb has a
>
> require 'facter/util/partitions'
>
> and this require seems to me that, no matter what I do, try to
> includes other ruby files from /usr/lib/ruby/vendor_ruby/ and not
> /var/lib/puppet/lib/, even if I run facter -p.
>
> What's the correct way to override via pluginsync an already existing
> and complex fact like "partitions" ? I'm already specifying
> "has_weigth 100" in /var/lib/puppet/lib/facter/partitions.rb because
> otherwise it wouldn't even consider my custom version, but it stops
> there.
>
> Thanks!

Hi,

I've done similar things with older versions of Facter. It should work.

Can you share your code, the result, and what you expect to happen?

Thanks,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54B30F5D.3070005%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to