Skip to content

Commit

Permalink
fix resource ordering + implement anchor pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Nov 8, 2013
1 parent c8f12f3 commit 19ca764
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
) inherits udev::params {
validate_re($udev_log, '^err$|^info$|^debug$')

anchor { 'udev:begin': } ->
package{ $udev::params::udev_package:
ensure => present,
} ->
Expand All @@ -34,9 +35,14 @@
group => 'root',
mode => '0644',
notify => Class['udev::udevadm::logpriority'],
}
} ->
anchor { 'udev:end': }

Anchor['udev:begin'] ->
class { 'udev::udevadm::trigger': } ->
Anchor['udev:end']

Anchor['udev:begin'] ->
class { 'udev::udevadm::logpriority': udev_log => $udev_log } ->
Class['udev']
Anchor['udev:end']
}

0 comments on commit 19ca764

Please sign in to comment.