Skip to content

Commit

Permalink
Merge pull request #100 from igalic/anchor-cleanup
Browse files Browse the repository at this point in the history
cleanup include and ordering of classes
  • Loading branch information
Ashley Penney committed Oct 15, 2013
2 parents 0727fcb + 3199439 commit 0e7bf35
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@
notice('autoupdate parameter has been deprecated and replaced with package_ensure. Set this to latest for the same behavior as autoupdate => true.')
}

include '::ntp::install'
include '::ntp::config'
include '::ntp::service'

# Anchor this as per #8040 - this ensures that classes won't float off and
# mess everything up. You can read about this at:
# http://docs.puppetlabs.com/puppet/2.7/reference/lang_containment.html#known-issues
anchor { 'ntp::begin': }
anchor { 'ntp::begin': } ->
class { '::ntp::install': } ->
class { '::ntp::config': } ~>
class { '::ntp::service': } ->
anchor { 'ntp::end': }

Anchor['ntp::begin'] -> Class['::ntp::install'] -> Class['::ntp::config']
~> Class['::ntp::service'] -> Anchor['ntp::end']

}

0 comments on commit 0e7bf35

Please sign in to comment.