summaryrefslogtreecommitdiffstats
path: root/examples/code/snippets
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-13 02:20:24 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-13 02:20:24 +0000
commit58ca9d1241eac3fb982aa673195d5e49ab0a1889 (patch)
tree8515f03f1c1e466ce9d7cee179bc4f4f89e46470 /examples/code/snippets
parentf9df5236aa75aa2978c7d9ce826aa6b9bf06a711 (diff)
downloadpuppet-58ca9d1241eac3fb982aa673195d5e49ab0a1889.tar.gz
puppet-58ca9d1241eac3fb982aa673195d5e49ab0a1889.tar.xz
puppet-58ca9d1241eac3fb982aa673195d5e49ab0a1889.zip
adding snippet test to verify correct behaviour with missing exec path; also, adding "creates" parameter to exec
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@649 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'examples/code/snippets')
-rw-r--r--examples/code/snippets/missingexecpath.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/code/snippets/missingexecpath.pp b/examples/code/snippets/missingexecpath.pp
new file mode 100644
index 000000000..3f43be325
--- /dev/null
+++ b/examples/code/snippets/missingexecpath.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",
+}