engine: resources: The kv resource can set un-mapped values

Previously the resource could only set values in a per-hostname
namespace, but for single, user-managed values, we'd like to be able to
control things entirely. Now this resource can do that.
This commit is contained in:
James Shubin
2024-01-16 16:04:12 -05:00
parent 6f1f69683d
commit 377d62999f
5 changed files with 86 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ if $state == "one" or $state == "default" {
kv "${ns}" {
key => $ns,
value => "two",
mapped = true,
}
Exec["timer"] -> Kv["${ns}"]
}
@@ -33,6 +34,7 @@ if $state == "two" {
kv "${ns}" {
key => $ns,
value => "three",
mapped = true,
}
Exec["timer"] -> Kv["${ns}"]
}
@@ -49,6 +51,7 @@ if $state == "three" {
kv "${ns}" {
key => $ns,
value => "one",
mapped = true,
}
Exec["timer"] -> Kv["${ns}"]
}