examples: lang: Update autoedges example

The /dev/null thing isn't needed anymore. Also make it easier to change
noop value.
This commit is contained in:
James Shubin
2019-05-15 03:51:01 -04:00
parent 7a756cacb9
commit e0d024ac95

View File

@@ -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,
}