From 77e920f2cd1ac21b9882d32d001b72b6765ae1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 26 Mar 2012 10:51:38 +0200 Subject: Use subscribe instead of notify --- manifests/lens.pp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'manifests') diff --git a/manifests/lens.pp b/manifests/lens.pp index c2bcd46..27d856f 100644 --- a/manifests/lens.pp +++ b/manifests/lens.pp @@ -33,16 +33,12 @@ define augeas::lens ( file { "${lens_dest}": ensure => $ensure, source => $lens_source, -# We should actually run the test when the lens is changed -# but we need to know if the test exists... -# notify => Exec["Typecheck lens ${name}", "Test lens ${name}"] - notify => Exec["Typecheck lens ${name}"] } exec { "Typecheck lens ${name}": command => "augparse -I ${augeas::base::lens_dir} ${lens_dest} || (rm -f ${lens_dest} && exit 1)", - require => File["${lens_dest}"], refreshonly => true, + subscribe => File[$lens_dest], } if $test_source { @@ -54,8 +50,8 @@ define augeas::lens ( exec { "Test lens ${name}": command => "augparse -I ${augeas::base::lens_dir} ${test_dest} || (rm -f ${lens_dest} && rm -f ${test_dest} && exit 1)", - require => File["${lens_dest}", "${test_dest}"], refreshonly => true, + subscribe => File[$lens_dest, $test_dest], } } } -- cgit v1.2.3