[Puppet Users] Re: ruby dsl, loading files from within the modules

2011-07-26 Thread Matt
I'll have to check that out that does seem to look a little better what I figured out before. What I did was this, which is just a different way. db_props = Puppet::Module.modulepath(scope.lookupvar("environment")).to_s + '/ module_name/conf/db.yaml' On Jul 26, 10:46 am, Nan Liu wrote: > On M

[Puppet Users] Re: ruby dsl, loading files from within the modules

2011-07-26 Thread Matt
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