Issue #18490 has been updated by Marc Fournier.
Encourage the use of virtual resources ? Virtual resources can only be declared once, but can by `realize()`'d any number of times. If module A and B only `realize()`'d some potentially conflicting resources (typically base packages such as git or rsync) instead, this would leave the responsability to declare a few @resources to the module user, but would avoid such namespace conflicts. People building modules which they'd like to be as generic as possible should be instructed to take care about this detail. And module users should be able to easily list every virtual resources a module expects to be defined. Maybe list them in the Modulefile ? ---------------------------------------- Feature #18490: Duplicate resources can make re-usable Forge modules difficult https://projects.puppetlabs.com/issues/18490#change-82546 Author: Ryan Coleman Status: Investigating Priority: Normal Assignee: Ryan Coleman Category: modules Target version: 3.x Affected Puppet version: Keywords: Branch: [EDIT] Re-working this description based on feedback in comment #7. User installs module A to provide a web application. User installs module B to provide a database server. Both module A and module B declare a package resource for foo. User declares classes from both module A and B on the same node. User receives duplicate resource declaration error, Puppet run fails. I wish to prevent customers of Forge and Puppet from experiencing this frustration, when both classes really do need that package for their functionality but cannot be used together as-is. I'd love direct questions if you need to understand this better from my perspective. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
