Mmmh it still doesn't work for me :( As a workaround, I created another fact which just executes the "partitions" fact and then add the labels to the appropriate partions. My PR was accepted :) so I've just to wait a new upstream version to remove the workaround. Anyway if you (or anybody) find some way to properly override a complex fact, keep me informed!
Thanks for your time On Mon, Jan 19, 2015 at 5:15 PM, Felix Frank <[email protected]> wrote: > On 01/12/2015 03:55 PM, Felix Frank wrote: >> I think the issue is that facter/util is not supposed to be pluggable >> this way. Custom facts live in lib/facter/*.rb and that's the extent of >> it. I may be mistaken, but it seems consistent to me that this will not >> work. > > Hi, > > I just found that this is most likely a false assumption of mine. > > https://github.com/puppetlabs/puppetlabs-stdlib/tree/master/lib/facter/util > > So, yeah, that should work. Although I'm still not sure what Ruby will > do if you sync a file to util/ that is also present in the system wide > facter/util/ tree. It's likely safer to give unique names to your fact > code files, except when you are overriding existing facts (not their > utility functions, mind). > > Best, > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/54BD2D92.90408%40alumni.tu-berlin.de. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAKsfaEbU6TkdaUGbCmSme26SMyCP0LtEzQPzJSjZ6Buo6K8-aA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
