Jo Rhett wrote:
> James, I love the idea of this module but the wiki page you listed below
> is fairly broken.  The syntax under anchor certainly wouldn't parse, and
> I'm staring at it and I'm not even sure what some of it is intending to
> say...

Jo

The syntax does parse from what I can see and the wiki documentation is
automatically generated from the code inside the module so it's not 100%
perfect yet and needs some more work. I'll add a ticket mentioning the
documentation parser needs to be cleaned up a little or you're welcome
to do the same!

The module contains additional documentation for the type that I've
reproduced below:

A simple resource type intended to be used as an anchor in a composite
class.

      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': }
      }

This resource allows all of the classes in the ntp module to be
contained within the ntp class from a dependency management point of view.

This allows the end user of the ntp module to establish require and
before relationships easily:

      class { 'ntp': } -> class { 'mcollective': }
      class { 'mcollective': } -> class { 'ntp': }

Hope that helps!

Regards

James Turnbull


-- 
James Turnbull
Puppet Labs
1-503-734-8571
To schedule a meeting with me: http://tungle.me/jamtur01

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to