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