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:
@@ -1,8 +1,9 @@
|
|||||||
|
$noop = false
|
||||||
pkg "drbd-utils" {
|
pkg "drbd-utils" {
|
||||||
state => "installed",
|
state => "installed",
|
||||||
|
|
||||||
Meta:autoedge => true,
|
Meta:autoedge => true,
|
||||||
Meta:noop => true,
|
Meta:noop => $noop,
|
||||||
}
|
}
|
||||||
|
|
||||||
file "/etc/drbd.conf" {
|
file "/etc/drbd.conf" {
|
||||||
@@ -10,15 +11,14 @@ file "/etc/drbd.conf" {
|
|||||||
state => "exists",
|
state => "exists",
|
||||||
|
|
||||||
Meta:autoedge => true,
|
Meta:autoedge => true,
|
||||||
Meta:noop => true,
|
Meta:noop => $noop,
|
||||||
}
|
}
|
||||||
|
|
||||||
file "/etc/drbd.d/" {
|
file "/etc/drbd.d/" {
|
||||||
source => "/dev/null",
|
|
||||||
state => "exists",
|
state => "exists",
|
||||||
|
|
||||||
Meta:autoedge => true,
|
Meta:autoedge => true,
|
||||||
Meta:noop => true,
|
Meta:noop => $noop,
|
||||||
}
|
}
|
||||||
|
|
||||||
# note that the autoedges between the files and the svc don't exist yet :(
|
# note that the autoedges between the files and the svc don't exist yet :(
|
||||||
@@ -26,5 +26,5 @@ svc "drbd" {
|
|||||||
state => "stopped",
|
state => "stopped",
|
||||||
|
|
||||||
Meta:autoedge => true,
|
Meta:autoedge => true,
|
||||||
Meta:noop => true,
|
Meta:noop => $noop,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user