From e0d024ac9574ac952dec7cd137e63cd1c2077862 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 15 May 2019 03:51:01 -0400 Subject: [PATCH] examples: lang: Update autoedges example The /dev/null thing isn't needed anymore. Also make it easier to change noop value. --- examples/lang/autoedges1.mcl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/lang/autoedges1.mcl b/examples/lang/autoedges1.mcl index 17b00402..62e3ab29 100644 --- a/examples/lang/autoedges1.mcl +++ b/examples/lang/autoedges1.mcl @@ -1,8 +1,9 @@ +$noop = false pkg "drbd-utils" { state => "installed", Meta:autoedge => true, - Meta:noop => true, + Meta:noop => $noop, } file "/etc/drbd.conf" { @@ -10,15 +11,14 @@ file "/etc/drbd.conf" { state => "exists", Meta:autoedge => true, - Meta:noop => true, + Meta:noop => $noop, } file "/etc/drbd.d/" { - source => "/dev/null", state => "exists", Meta:autoedge => true, - Meta:noop => true, + Meta:noop => $noop, } # note that the autoedges between the files and the svc don't exist yet :( @@ -26,5 +26,5 @@ svc "drbd" { state => "stopped", Meta:autoedge => true, - Meta:noop => true, + Meta:noop => $noop, }