Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: puppetlabs/puppetlabs-stdlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.5
Choose a base ref
...
head repository: puppetlabs/puppetlabs-stdlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.6
Choose a head ref
  • 5 commits
  • 5 files changed
  • 1 contributor

Commits on Jun 3, 2011

  1. Add additional tests to validate_bool() spec

    Jeff McCune committed Jun 3, 2011
    Configuration menu
    Copy the full SHA
    df2398b View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2011

  1. (#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': }
    Jeff McCune committed Jun 15, 2011
    Configuration menu
    Copy the full SHA
    ab70663 View commit details
    Browse the repository at this point in the history
  2. (#3) Add simple unit test for anchor type

    Unlike the whit type the anchor type derives from, we are not hacking
    the stringify method.  We expect the resource to be named simply
    Anchor[foo::bar] where the name is "foo::bar".
    Jeff McCune committed Jun 15, 2011
    Configuration menu
    Copy the full SHA
    f13f3c2 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #4 from jeffmccune/ticket/master/3_anchor_resource…

    …_type
    
    Ticket/master/3 anchor resource type
    
    Nan +1'ed on the tech list.
    
    Merging into master.
    Jeff McCune committed Jun 15, 2011
    Configuration menu
    Copy the full SHA
    c4e8bb8 View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG for version 0.1.6

    Jeff McCune committed Jun 15, 2011
    Configuration menu
    Copy the full SHA
    27973cb View commit details
    Browse the repository at this point in the history
Loading