Forge Home

disable_caller_module_name

Private classes are hateful for users. This module disables them

9,511 downloads

9,511 latest version

3.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released Jun 25th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'bobtfish-disable_caller_module_name', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add bobtfish-disable_caller_module_name
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install bobtfish-disable_caller_module_name --version 0.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: private

Documentation

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

##Overview

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!

##Setup

Just include this module in your modulepath

##Limitations

Only currently tested against puppet 3.5.1.

##Development

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.