The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #11730

document $module_name

Added by Garrett Honeycutt over 4 years ago. Updated over 2 years ago.

Status:ClosedStart date:01/04/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Keywords:module_name coupling Affected URL:

We've Moved!

Ticket tracking is now hosted in JIRA:


$module_name is not documented. Suggest we add it to

Related issues

Related to Puppet Documentation - Feature #11397: style guide should recommend that people use $module_name... Rejected 12/14/2011


#1 Updated by Cody Herriges over 4 years 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 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.

#2 Updated by Nick Fagerlund over 2 years ago

  • Status changed from Unreviewed to Closed

It’s in the special variables section.

Also available in: Atom PDF