Feature #11730

document $module_name

Added by Garrett Honeycutt 4 months ago. Updated 4 months ago.

Status:Unreviewed Start date:01/04/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Keywords:module_name coupling Affected URL:
Branch:
Votes: 2

Description

$module_name is not documented. Suggest we add it to http://docs.puppetlabs.com/learning/variables.html


Related issues

related to Puppet Documentation - Feature #11397: style guide should recommend that people use $module_name... Needs More Information 12/14/2011

History

Updated by Cody Herriges 4 months ago

To be more specific. Usage of $module_name and $caller_module_name should be more thoroughly explained as part of our documentation, beyond what is available at http://docs.puppetlabs.com/guides/faq.html. What affect does the caller_module_name variable have when it is defined or redefined as part of a override and does it have scoping implications, e.g. try inheriting a class vs. including it. If you include the variable is evaluated in the scope it is included in, if you inherit it is evaluated it in the scope it was defined. Same goes for module_name since it behaves differently, always being evaluated in the class it was defined.

Also available in: Atom PDF