On 09/02/2014 02:45 PM, kaustubh chaudhari wrote:
> Hey,
>
> Thanks for the reply. I tried what you suggested.
>
> Sorry i am not a programmer, trying to find my way through.
>
> I am looking for a best way to achieve this.
>
> run a script on nodes user.sh which will create a file user.out, all i
> am looking for getting this user.out file back to the puppet master.
>
> can you suggest any ideas thoughts on this ?
> (i am running user.sh through my manifest)
It should be as simple as this custom fact:

Facter.add('user_sh_output') do
  setcode do
    File.read('/path/to/user.out')
  end
end

https://docs.puppetlabs.com/facter/2.1/custom_facts.html#loading-custom-facts

This documentation explains what is what and where to put the code.

HTH,
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/54063110.8050503%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to