Hi Martin,

That doesn't actually work: I thought exactly the same in the beginning and 
already have the pluginsync enabled. I think, the reason being, the fact 
(am_running_oss.rb) file itself reads a text file and the file should be 
local. When it runs on the agent, the file (inFile = "/home/admin/OSs.txt")is 
there for the .rb file to read it, hence the fact returns 'undefined'as 
well. 

-San



 

On Sunday, October 13, 2013 11:18:46 AM UTC+1, Martin Alfke wrote:
>
> Hi, 
>
> On 13.10.2013, at 10:57, Sans <[email protected] <javascript:>> wrote: 
>
> > [...] 
>
> > The file is on the PuppetMaster. Hence the custom fact 'am_running_oss' 
> is not available or empty when it runs on the agent. What are the options I 
> have to make the custom facts(s) available on every single puppet agent? 
> Thanks in advance. Cheers!! 
> > 
>
> You have to put the fact inside the lib/facter directory of a module and 
> you have to enable pluginsync on all nodes puppet.conf. 
> http://docs.puppetlabs.com/guides/plugins_in_modules.html 
>
> hth, 
>
> Martin 
>
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to