From 1ab3714ba9a33c9a7d093389283ed1a7eef4f46d Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 7 Nov 2013 09:06:51 -0700 Subject: [PATCH] implement anchor pattern --- manifests/init.pp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 46dfb2f..c697a62 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,15 +20,13 @@ include mdadm::params + anchor { 'mdadm::begin': } -> package { $mdadm::params::mdadm_package: ensure => present, - } - - Package[$mdadm::params::mdadm_package] -> - class { 'mdadm::mdmonitor': } - - Package[$mdadm::params::mdadm_package] -> + } -> + class { 'mdadm::mdmonitor': } -> class { 'mdadm::raid_check': options => $raid_check_options, - } + } -> + anchor { 'mdadm::end': } }