Issue #18926 has been updated by Dominic Cleal. Status changed from Unreviewed to Duplicate
Dupe of #1398. ---------------------------------------- Bug #18926: Package names not qualified by provider https://projects.puppetlabs.com/issues/18926#change-82034 Author: Ken Coar Status: Duplicate Priority: Normal Assignee: Category: package Target version: Affected Puppet version: 2.7.18 Keywords: Branch: [Puppet 2.7 on RHEL6 and Fedora] The names of packages from different providers should be namespaced/qualified by the provider, or else erroneous conflicts may result. These two resources conflict: package { 'foo': provider => yum, } package { 'foo': provider => gem, } Duplicate declaration: Package[foo] is already declared; cannot redeclare (The names are fake, obviously, to avoid clouding the issue with 'use this other name instead') I tried working around it by using a different name for the resources, but no joy -- the name attribute **is** the namevar: package { 'foo': name => 'rpm-foo', provider => yum, } package { 'foo': name => 'gem-foo', provider => gem, } Duplicate declaration: Package[foo] is already declared; cannot redeclare Someone in IRC suggested including the architecture in the RPM declaration, like "foo.${::architecture}": but that is at best a hack, and breaks anyway if the package isn't architecture specific (*i.e.*, **`.noarch`**). -- 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]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
