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 other path to their modules, or doesn't use environments at all? Is it possible somehow to detect the dir in which the module is installed, so that I can use something like:


generate("$modulepath/scripts/myscript")



--
Jakov Sosic
www.srce.unizg.hr

--
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