summaryrefslogtreecommitdiffstats
path: root/examples/execs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/execs')
-rw-r--r--examples/execs16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/execs b/examples/execs
new file mode 100644
index 000000000..44f133098
--- /dev/null
+++ b/examples/execs
@@ -0,0 +1,16 @@
+$path = "/usr/bin:/bin"
+
+exec { "mkdir -p /tmp/fakedir":
+ path => $path
+}
+
+exec { "rm -rf /tmp/fakedir":
+ path => $path
+}
+
+exec { "touch /this/directory/does/not/exist":
+ path => $path,
+ returns => 1
+}
+
+