Issue #2762 has been updated by Michael Komitee.
I'd like to add my 2 cents here.
A use case I'd like to see is:
Make it so I can make a resource require the created file, which would cause
the script to be executed that creates the file before the other resource is
processed.
Exec {
'/foo.sh'
creates => '/foo.txt';
'/bar.sh'
require => File['/foo.txt'];
}
Which would ensure that bar.sh is only executed if foo.txt already exists and
has been updated if necessary.
The same thing can likely be accomplished by requiring the exec, the exec
really depends on the file being up to date, not the mechanism that generates
the file.
----------------------------------------
Feature #2762: Exec's "creates" should be a referencable resource.
http://projects.reductivelabs.com/issues/2762
Author: Alex Urbanowicz
Status: Needs more information
Priority: Normal
Assigned to: Alex Urbanowicz
Category: exec
Target version:
Affected version: 0.25.1
Keywords: exec file provisioning relationship dependency
Branch:
Currently Exec's creates value can't be required or subscribed to. It should be
treated as normal File resource so there could be different method of
provisioning it without changing relations tied to the result file and not to
the "source" Exec (or other method depending on some outside factor).
--
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://reductivelabs.com/redmine/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.