Issue #2762 has been updated by John Bollinger.
I think it would be pretty confusing to have references to a resource that is declared only implicitly, as a subordinate to some other resource, and which will not appear in the catalog. There are two pretty good alternatives, both of which have already been raised: 1. Express relationships with the Exec, which makes sense because the Exec effectively includes the file as part of its state. The Exec can be given a short, meaningful title (i.e. different from its command) so that relationships to it are more readable to humans; indeed I would recommend that for ALL Execs. 2. Create a class or definition wrapping the Exec, and declare relationships to that. That has the advantage of representing the resource more abstractly, and it potentially conveys additional information via the name of the class or definition. Although it might be a minor convenience at times to be able to refer to the created file as if it were a real resource, I don't like the prospect of the language reflecting the model inaccurately. John ---------------------------------------- Feature #2762: Exec's "creates" should be a referencable resource. https://projects.puppetlabs.com/issues/2762#change-77489 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.
