I'm all for writing facts but I dont think it is the best solution in
this given problem. You can easily create a variable at top level to
identify where the file is and use it but that is not really elegant
either. With file definitions I can use the template function to read
in from a module but it doesnt seem to be working for me in outside of
the file resource.

On Jul 26, 12:16 am, Scott Smith <sc...@ohlol.net> wrote:
> Sounds like a good use case for writing a custom fact.
>
>
>
> On Mon, Jul 25, 2011 at 5:09 PM, Matt <mjbl...@gmail.com> wrote:
> > Is there a way to load a file from within the module in Ruby DSL?
>
> > The idea I have is to load a file similar to like how template works.
>
> > I'm trying to read in a database properties file and I would like to
> > keep within the module instead of hard coding paths.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > puppet-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to