Hi,

one question. I'm using pluginsync.

"Custom facts can be distributed to clients using the Plugins in Modules 
<https://docs.puppetlabs.com/guides/plugins_in_modules.html> method."

That seems not to be enough.

So what is the path I've to use? Is it the path to the *rb files e.g. 
../<modulename>/lib/facter?

-Andreas

Am Freitag, 29. Mai 2015 09:09:55 UTC+2 schrieb [email protected]:
>
> Hi Peter, hi Thmaos,
>
> I'll need some time to test your suggestions.
>
> - Andreas
>
> Am Mittwoch, 27. Mai 2015 18:50:56 UTC+2 schrieb Peter Huene:
>>
>> Hi Andreas,
>>
>> On Tue, May 26, 2015 at 11:16 PM, <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> is it possible to use custom facts inside other custom facts? 
>>>
>>> With facter -p the custom fact is listed ( e.g.):
>>>
>>> ...
>>> userblweb => 1000
>>>
>>> With irb:
>>>
>>> irb(main):001:0> require 'facter'
>>> => true
>>> irb(main):002:0> a = Facter.value(:userblweb)
>>> => nil
>>>
>>> Any idea?
>>>
>>
>> When using the Facter API, Facter needs to be told where the custom facts 
>> are stored:
>>
>> irb> Facter.search '<path_to_custom_facts>'
>>
>> Note: despite being a verb, the 'search' method only adds the given path 
>> to the list of search paths.
>>
>> The same thing happens during Puppet's settings initialization that is 
>> invoked when you pass the '-p' option to Facter (as Thomas mentioned, this 
>> is deprecated).
>>
>> Likewise, the path can be specified to Facter by using the FACTERLIB 
>> environment variable set to a list of paths to search for custom facts.
>>
>> Facter 3 will be adding a '--custom-dir' command line option that is 
>> another way of specifying where custom facts are stored.
>>
>> I hope this helps.
>>
>>
>> -- 
>> *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - *www. 
>> <http://www.google.com/url?q=http%3A%2F%2Fwww.&sa=D&sntz=1&usg=AFQjCNEnS7itqgvQV3E4Se1fu4Um_UapSw>
>> 2015.puppetconf.com 
>> <http://www.google.com/url?q=http%3A%2F%2F2015.puppetconf.com&sa=D&sntz=1&usg=AFQjCNE1uQL4Sh23Vr-XkPLa4xfNcoXSog>
>>  
>> *Register early to save 40%!*
>>  
>

-- 
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/db400e68-1e0f-4c7f-b536-5a03565d8a5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to