Re: [Puppet Users] generate() function help

2012-12-28 Thread Jakov Sosic
On 12/28/2012 12:37 AM, Jakov Sosic wrote: I've found that already. But I've decided to write my own function which returns path to current module directory. If that doesn't succeed then I'll use get_module_path. Hm, I'm having problems with writing custom functions... One question first - is

Re: [Puppet Users] generate() function help

2012-12-27 Thread Jakov Sosic
On 12/27/2012 07:57 PM, Nan Liu wrote: On Thu, Dec 27, 2012 at 10:29 AM, Jakov Sosic mailto:jso...@srce.hr>> wrote: I want to run script which is distributed with my module, but the problem is I have to then hardcode the path to the script in the generate function call, for example:

Re: [Puppet Users] generate() function help

2012-12-27 Thread Nan Liu
On Thu, Dec 27, 2012 at 10:29 AM, Jakov Sosic wrote: > I want to run script which is distributed with my module, but the problem > is I have to then hardcode the path to the script in the generate function > call, for example: > > generate("/etc/puppet/**environments/${environment}/** > modules/m

[Puppet Users] generate() function help

2012-12-27 Thread Jakov Sosic
Hi. I want to run script which is distributed with my module, but the problem is I have to then hardcode the path to the script in the generate function call, for example: generate("/etc/puppet/environments/${environment}/modules/mymodule/scripts/myscript") But what If some other site uses o