Issue #16782 has been updated by Jeff McCune.
Comment from eric / platform team: We need to continue investigating this and talk with Nick about the user intent issue and storing the origin of the declaration when the origin is multi-valued. We also need to talk about the module usability problem with Ryan. ---------------------------------------- Bug #16782: Collecting exactly the same resource from two sources causes a duplicate definition error https://projects.puppetlabs.com/issues/16782#change-81074 Author: Nick Lewis Status: Investigating Priority: High Assignee: Deepak Giridharagopal Category: stored configuration Target version: 3.x Affected Puppet version: Keywords: backlog Branch: This is a similar issue as in Puppet. Aside from exported resources, if you declare the same resource twice, you get an error. This makes sense. But if the resource is identical, it often makes some sense for multiple pieces of your code to want to declare it. In that case, the way to get around the duplicate definition is to put it inside a class which is included in each place. For exported resources, the exact same issue exists. If two nodes export identical resources (which is not unlikely if you have n of the same kind of node), any node which collects that resource will get multiple copies and fail. In that case, there is no such workaround available, as with including a class. Personally, I actually think the current behavior is correct. However, that doesn't change the fact that this is a real use case users have, and a real limitation they encounter. Effectively, the issue is that declaring and exporting resources are not idempotent actions. The best solution to me feels like some feature which captures the desired idempotence here, while leaving the semantics of the existing features alone. Basically, "make sure this resource is exported", by exporting it if not, or doing nothing if so. -- 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.
