Can this be file in other path ?
On Aug 6, 2012 4:20 PM, "Dan White" <[email protected]> wrote:

> I think you are trying to re-invent a wheel that is already in use.
>
> Consider:
>
> http://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3/
>
> facter-dot-d; a simple way of pulling facts from external sources.
>
> From the docs:
>
> A simple little framework to get facts from external sources. You can
> create files in /etc/facter/facts.d which can be text, yaml, json or
> executables. In the case of executables it supports caching so you only
> need to run your expensive scripts every now and then.
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere
> in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> ----- Yaniv Fine <[email protected]> wrote:
> > Hi experts .
> >
> > i would like to write a custom fact the will  add a fact to a machine
> yaml
> > file
> > i am a file /etc/file.conf
> > inside this file a have many lines like
> > value1 = test1
> > value2 = test2
> >
> > i want to create a custom rb file that will grep test2 from  value2
>  value
> > from /etc/file.conf   , take the test2 and add it to a fact
> >
> > how can i achieve this ?
> > thank you
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> > To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/Zqakzj9PoBMJ.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected].
> > For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to