Cool!!! Thanks for that Felix. It did what i was looking for.

The only catch was formatting of the file is messed, but i did some
scripting on the master server and fixed it.

Thanks for your help .....

more i work with puppet.. more i fell in love with it!!!


With Warm Regards
Kaustubh.A.Chaudhari
(M)-09373102619


On Tue, Sep 2, 2014 at 5:05 PM, Felix Frank <felix.fr...@alumni.tu-berlin.de
> wrote:

> 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 a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/pJRuahaMpmM/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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/CAGceKKoL-LW7gsqgGxkm_p-DPR88oTWt7DnMErUsB77w5zxcBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to