The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
a way for generators to find the current directory
|Affected Puppet version:||0.25.5||Branch:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
This ticket may be automatically exported to the PUP project on JIRA using the button below:
I’d like generators to be able to make decisions based on the existence of files in the module’s “templates” or “files” directories. For example, a generator could choose whether a file resource used content => template(“mymodule/somefile”) or content => template(“mymodule/somefile.$fqdn”).
It would be sufficient if puppet did a chdir to the module directory before running the generator, or if puppet provided an environment variable to inform the generator of the appropriate directory name.