From 308d4dd7caaa35aaa8110e262830ba1cf644b85f Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Wed, 22 Nov 2023 09:33:51 -0500 Subject: [PATCH] Document passing an array to exec creates This is probably not what most people would expect... --- lib/puppet/type/exec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index 5cd0ab41cc3..e76e551f511 100644 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -436,6 +436,14 @@ def check(value) back by re-extracting the tarball. If `important.tar` does **not** actually contain `myfile`, the exec will keep running every time Puppet runs. + + This parameter can also take an array of files and the command will + not run if **any** of these files exist. For example: + + creates => ['/tmp/file1', '/tmp/file2'], + + will only run the command if both files don't exist. + EOT accept_arrays