Issue #2762 has been updated by Simon McCartney.
I had a similar requirement (I needed to exec based on a file being missing,
and have other things require the file), I worked round it with it with a crude
define:
define execcreates( $creates, $cwd )
{
$command = $name
exec { "$command":
creates => $creates,
cwd => $cwd,
}
file { "$creates":
ensure => file,
require=> Exec["$command"]
}
}
https://gist.github.com/1387040
----------------------------------------
Feature #2762: Exec's "creates" should be a referencable resource.
https://projects.puppetlabs.com/issues/2762
Author: Alex Urbanowicz
Status: Needs More Information
Priority: Normal
Assignee: Alex Urbanowicz
Category: exec
Target version:
Affected Puppet 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://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.