Private classes are hateful for users. This module disables them

Tomas Doran



8,504 latest version

3.4 quality score

Version information

  • 0.0.1 (latest)
released Jun 25th 2014

Start using this module

Tags: private


bobtfish/disable_caller_module_name — version 0.0.1 Jun 25th 2014

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Limitations - OS compatibility, etc.
  4. Development - Guide for contributing to the module


Private classes are hateful for users. This module disables them.

##Module Description

This module does horrible horrible things to the puppet internals, and disables the 'caller_module_name' variable, by setting it to the same as the 'module_name' variable.

This stops the 'private class hack' (as shown here: http://www.unixdaemon.net/tools/puppet/protect-internal-puppet-classes.html) and the private() function from puppetlabs/stdlib (which just implements this hack).

NOTE: If you have a legitemate use of the 'caller_module_name' variable, this code will break it!


Just include this module in your modulepath


Only currently tested against puppet 3.5.1.


Patches are welcome! I'd love to support more puppet versions, and to add functionality to be able to disable private classes on a per-module basis.