No description
Find a file
Jeff McCune ab70663d15 (#3) Add an anchor type to provide containment
With Puppet 2.6.x we do not have a way to specify containment
relationships.  In the use case of class ntp { } declaring
ntp::{package,config,service} classes, the ntp class itself should allow
the user to specify before and require relationships to the main ntp
class.

The anchor resource type allows module authors to close the loop on
classes composing the main top level module.  For example:

    class ntp {
      class { 'ntp::package': }
      -> class { 'ntp::config': }
      -> class { 'ntp::service': }
      # These two resources "anchor" the composed classes
      # such that the end user may use "require" and "before"
      # relationships with Class['ntp']
      anchor { 'ntp::begin': } -> class { 'ntp::package': }
      class { 'ntp::service': } -> anchor { 'ntp::end': }
    }

Using this pattern, the module user may then simply declare relationships to
the ntp class as they expect:

    class { 'ntp': } -> class { 'mcollective': }
    # OR
    class { 'mcollective': } -> class { 'ntp': }
2011-06-15 09:40:04 -07:00
lib/puppet (#3) Add an anchor type to provide containment 2011-06-15 09:40:04 -07:00
manifests Move stages to after main 2011-05-26 10:21:42 -07:00
spec Add additional tests to validate_bool() spec 2011-06-03 11:56:02 -07:00
tests Initial commit 2011-05-24 11:06:30 -07:00
.gitignore Add DS_Store to gitignore 2011-05-25 09:36:08 -07:00
CHANGELOG Update CHANGELOG for 0.1.5 2011-06-03 11:44:37 -07:00
LICENSE Add Apache 2.0 License 2011-06-03 11:44:37 -07:00
metadata.json Initial commit 2011-05-24 11:06:30 -07:00
Modulefile Update CHANGELOG for 0.1.5 2011-06-03 11:44:37 -07:00
README.markdown Update README with target versions 2011-05-24 11:23:16 -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