No description
Find a file
Dan Bode 4540949d96 (#8665) Change type from append_line to whole_line
Changed the type name from append_line to
whole_line.

After feedback that having a type with a verb in
the name was confusing.
2011-07-27 15:28:44 -07:00
lib/puppet (#8665) Change type from append_line to whole_line 2011-07-27 15:28:44 -07:00
manifests Move stages to after main 2011-05-26 10:21:42 -07:00
spec (#8665) Change type from append_line to whole_line 2011-07-27 15:28:44 -07:00
tests (#8665) Change type from append_line to whole_line 2011-07-27 15:28:44 -07:00
.gitignore Remove metadata.json from repository 2011-06-20 16:05:18 -07:00
CHANGELOG Update CHANGELOG and version for 0.1.7 2011-06-21 17:08:05 -07:00
LICENSE Add Apache 2.0 License 2011-06-03 11:44:37 -07:00
Modulefile Update CHANGELOG and version for 0.1.7 2011-06-21 17:08:05 -07:00
README.markdown Update README with getvar() and validate_hash() 2011-06-21 17:06:46 -07:00
RELEASE_PROCESS.markdown Update changelog for version 0.1.2 2011-05-24 11:49:57 -07:00

Puppet Labs Standard Library

This module provides a "standard library" of resources for developing Puppet Modules. This modules will include the following additions to Puppet

  • Stages
  • Facts
  • Functions
  • Defined resource types
  • Types
  • Providers

This module is officially curated and provided by Puppet Labs. The modules Puppet Labs writes and distributes will make heavy use of this standard library.

Compatibility

This module is designed to work with Puppet version 2.6 and later. It may be forked if Puppet 2.7 specific features are added. There are currently no plans for a Puppet 0.25 standard library module.

Overview

TBA

Contact Information

Jeff McCune jeff@puppetlabs.com

Functions

validate_hash

$somehash = { 'one' => 'two' }
validate\_hash($somehash)

getvar()

This function aims to look up variables in user-defined namespaces within puppet. Note, if the namespace is a class, it should already be evaluated before the function is used.

$namespace = 'site::data'
include "${namespace}"
$myvar = getvar("${namespace}::myvar")