Issue #8612 has been updated by Jeff Blaine.
Ohhhh, it's an extraction of the tar file. My mind jumped to it being a
creation of the tar file, so was thinking it should be "creates =>
"/my/tar/file.tar"". I get it now.
The explanation was a bit sparse though. How about:
<blockquote>
A file that this command creates. If this parameter is provided, then the
command will only be run if the specified file does not exist. In the example
below, the tar file will not be extracted into /var/tmp if
/var/tmp/custcode-1.3 exists already (suggesting that the tar file was already
extracted there and that we know what the contents of the tar file would
extract to).
<pre>
exec { "tar xzf /some/path/custcode-1.3.tar.gz":
cwd => "/var/tmp",
creates => "/var/tmp/custcode-1.3",
path => ["/usr/bin", "/usr/sbin"]
}
</pre>
</blockquote>
----------------------------------------
Bug #8612: exec "creates" param in doc example wrong
https://projects.puppetlabs.com/issues/8612
Author: Jeff Blaine
Status: Unreviewed
Priority: Normal
Assignee:
Category: documentation
Target version:
Affected Puppet version:
Keywords:
Branch:
The 'creates' param in the code seems wrong, but I'm a newb, so...
http://docs.puppetlabs.com/references/stable/type.html#exec
...
***creates***
A file that this command creates. If this parameter is provided, then the
command will only be run if the specified file does not exist:
<pre>
exec { "tar xf /my/tar/file.tar":
cwd => "/var/tmp",
creates => "/var/tmp/myfile",
path => ["/usr/bin", "/usr/sbin"]
}
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.