summaryrefslogtreecommitdiffstats
path: root/examples/code/snippets/failmissingexecpath.pp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/code/snippets/failmissingexecpath.pp')
-rw-r--r--examples/code/snippets/failmissingexecpath.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/code/snippets/failmissingexecpath.pp b/examples/code/snippets/failmissingexecpath.pp
new file mode 100644
index 000000000..3f43be325
--- /dev/null
+++ b/examples/code/snippets/failmissingexecpath.pp
@@ -0,0 +1,13 @@
+define distloc(path) {
+ file { "/tmp/exectesting1":
+ create => file
+ }
+ exec { "touch $path":
+ subscribe => file["/tmp/exectesting1"],
+ refreshonly => true
+ }
+}
+
+distloc {
+ path => "/tmp/execdisttesting",
+}